Hunt prep
Before you test Starknet Perpetual
What 5 disclosed reports say about Starknet Perpetual: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 4 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
_execute_transfer wrong order of operations, will first apply diff and then check with applying the diff
The validation should be performed before applying any state changes, so the diff is only applied once.
Disclosed
-
Stale prices can cause inaccurate validation of funding ticks in funding_tick()
The price should be validated as up to date when retrieved through get_synthetic_price(), without requiring funding indexes to be current.
Disclosed
-
Liquidatable long positions can be forced into short positions and vice versa
The fix should add a check, similar to existing functions, to ensure liquidations do not cause long positions to become shorts and vice versa.
Disclosed
-
A malicious signed price can be injected in assets.price_tick()
The contract should panic if the supplied signer public key does not map to a non-empty packed oracle and asset name.
Disclosed
-
Deleveragable Positions Cannot Be Fully Liquidated
The assert_healthy_or_healthier check should be skipped when a deleveragable position is fully liquidated (i.e., zero synthetic balance after).
Disclosed