Hunt prep
Before you test Symmetrical Update
What 39 disclosed reports say about Symmetrical Update: 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 | 32 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Crypto lesson | 1 | 0 | – | – | $0 |
| Race condition lesson | 1 | 0 | – | – | $0 |
| Smart contracts 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.
-
MultiAccount `depositAndAllocateForAccount` function doesn't scale the allocated amount correctly, failing to allocate enough funds
The amount should be scaled to 18 decimals before being passed to the allocate function, as was done in the fix.
Disclosed
-
`liquidatePartyA` requires signature which doesn't have nonce, making possible unfair liquidation and loss of funds for all parties
Include partyA and partyB nonces in the liquidation signature.
Disclosed
-
Position value can fall below minimum acceptable quote value when partially closing positions requested to be closed in full
The check should be based on whether the fill amount equals the requested close amount, not on the remaining open amount.
Disclosed
-
Position closure might always revert in some cases due to allocatedBalances being unsigned, preventing the user from closing its positions
The issue was not fixed; the team acknowledged it as a limitation and stated that future versions will introduce mechanisms to convert unrealised profits into realised ones.
Disclosed
-
Wrong calculation of solvency in `fillCloseRequest` prevents the position from being closed even if the user is solvent after position closure
The solvency check should require both parties to be solvent only at the close price, not at both market and close price.
Disclosed
-
`liquidatePositionsPartyA` limits partyB loss to partyB allocated balance, which can lead to inflated partyB balance and loss of funds for protocol users
The fix should calculate the total signed profit and loss for all positions of a partyB before applying any deduction, so that the loss is not capped per position.
Disclosed
-
Liquidators can prevent users from making their positions healthy during an unpause
The protocol should add a grace period after unpausing during which liquidations remain blocked, or otherwise mitigate unfair liquidations.
Disclosed
-
In case if symbol is not valid it should be not possible to open position
The issue was fixed by adding a validity check in the openPosition function.
Disclosed
-
Accounting error in PartyB's pending locked balance led to loss of funds
The code was fixed to subtract the total locked value from PartyB's pending locked balance instead of only the filled locked value.
Disclosed
-
Fee collector can grief the protocol by withdrawing trading fees that could still need to be returned to Party A
The fees that may need to be returned should be accounted for separately, and only non-returnable fees should be withdrawable.
Disclosed
-
Party B liquidation can expire, causing the liquidation to be stuck
The code was fixed by adding functionality to reset the liquidation status and timestamp once the liquidation timeout is reached.
Disclosed
-
Rounding error when closing quote
The fix was to add input validation on filledAmount in the fillCloseRequest function to ensure it is sufficiently large to avoid rounding errors, as indicated by the fixed code PR link.
Disclosed
-
Hedgers are not incentivized to respond to user's closing requests
The report recommends removing the gap ratio in forceClosePosition so no spread is charged, and filling at the market price; the project later fixed it.
Disclosed
-
Liquidators will not be incentivized to liquidate certain PartyB accounts due to the lack of incentives
The liquidation incentive mechanism should be updated to always provide some incentive, for example by giving a percentage of the CVA as a liquidation fee.
Disclosed
-
Consecutive symbol price updates can be exploited to drain protocol funds
The protocol was fixed by preventing the liquidator from updating symbol prices mid-way through a liquidation process.
Disclosed