Hunt prep
Before you test Superposition
What 25 disclosed reports say about Superposition: 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 | 16 | 0 | – | – | $0 |
| Smart contracts lesson | 4 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
| Race condition 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.
-
It’s still not possible to set pool’s protocol fees
The function should be added to SeaWaterAMM.sol to allow the admin to set the protocol fee, though the team noted they fixed it in principle.
Disclosed
-
No slippage control when withdrawing a position leads to loss of funds
A withdrawal function should be reintroduced that lets users set minimum and desired amounts for both tokens.
Disclosed
-
createPoolD650E2D0 will not work due to mismatch in solidity and stylus function definitions
The unneeded parameters (tickSpacing and maxLiquidityPerTick) should be removed from the Solidity function definition to match the Stylus function.
Disclosed
-
Tokens are pulled from users without verifying pool status contrary to requirement
The issue was fixed by adding a pool status check in adjust_position_internal.
Disclosed
-
Users are incorrectly refunded when liquidity is insufficient
The refund block should be removed because the input amount is already taken from the user.
Disclosed
-
Incorrect slippage handling in swap_internal()
The check was changed to require both amounts to be greater than zero, and the project confirmed it was fixed.
Disclosed
-
_onTransferReceived() does not work as intended
The comparison should be changed from '!=' to '==' so that the transfer only proceeds when the receiver returns the expected selector.
Disclosed
-
bytes data param is not passed to ERC721 recipient as expected by EIP-721
The _onTransferReceived function should accept a bytes data parameter and pass it to onERC721Received; the safeTransferFrom without data should pass empty bytes.
Disclosed
-
Unintended under/overflow of the amount already swapped in/out due to unmatching logic
The code should be fixed by using `checked_sub` and `checked_add` instead of the unchecked operators.
Disclosed
-
Users can’t remove liquidity while a pool is disabled
The pool status should be checked only when liquidity is being added, for example by testing whether the delta is positive.
Disclosed
-
Lp’s liquidity may be lost if re-org happens
The project resolved the issue by deleting the burn position feature.
Disclosed
-
Volatile pools with higher fee structure cannot be created because of tick_spacing
The team addressed this by enforcing a limit on the fee rather than increasing the data type, as they do not intend to set fees that high.
Disclosed
-
Parameter misordering in fee collection function causes denial of service and fee loss
The arguments to the token transfer helper should be reordered so the token address comes first and the recipient address second.
Disclosed
-
swapOut functions have invalid slippage check, causing user loss of funds
The code should decode the amounts in the correct order and check the absolute value of the output token amount against minOut.
Disclosed
-
When performing swap and the swap position does not cover swap amount , the base price of sqrt_price is set incorrectly
The code should be modified to store the price of the last successfully swapped position instead of the user's price limit when the swap amount is not fully covered.
Disclosed