Hunt prep
Before you test Perennial V2 Update #4
What 7 disclosed reports say about Perennial V2 Update #4: 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 | 7 | 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.
-
Intent orders are guaranteed to execute, but fees from these orders are not accounted in collateral, allowing user to withdraw all collateral ignoring these pending fees
The protocol team fixed this issue in a pull request.
Disclosed
-
Some accounts using Intents to trade might be liquidated while healthy or be unliquidatable while being unhealthy
The protocol team fixed this issue in a pull request.
Disclosed
-
Anyone can steal all funds from the `market` due to incorrect health accounting for pending pnl from difference of intent price and market price when multiple intents are used
The protocol team fixed this issue by calculating the sum of price adjustments for all pending guarantees and adding it to collateral when validating the margin requirement.
Disclosed
-
`InvariantLib` uses current position for margin check allowing to withdraw collateral while the position decrease is only pending and can cause unexpected immediate user liquidation
The protocol team fixed this issue in a pull request.
Disclosed
-
Vault.settle(account=coordinator) will lose profitShares
The protocol team fixed this issue by updating the _credit function to modify [redacted].shares when the account matches the context account, as shown in the mitigation diff.
Disclosed
-
Liquidations are temporarily blocked if user's pending position close amount is greater than the latest position size
The protocol team fixed this issue by adding a special check for liquidations when pending negative exceeds latest position, requiring the liquidation order to be empty.
Disclosed