Hunt prep
Before you test Maverick contest
What 8 disclosed reports say about Maverick contest: 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 | 5 | 0 | – | – | $0 |
| Access control 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.
-
Pool._amountToBin() returns a wrong value when protocolFeeRatio = 100% .
The report recommends special-casing a 100% protocol fee ratio so the function returns the deposit minus the fee basis instead of applying the clipped calculation.
Disclosed
-
Unused ETH is not refunded when a limit price is set
The report recommends refunding unspent ETH, but the judge suggested instead increasing documentation to encourage users to use MultiCall.
Disclosed
-
The calculation of LP token amount and deposit amount is wrong for edge cases
The project said it would update the white paper rather than change the code.
Disclosed
-
exactInput allows stealing of funds via a malicious pool contract
The Router should check that each pool in the path was created by the official factory before calling it.
Disclosed
-
Trader can manipulate price because bin only moved after swap
The bin should be moved at the beginning of a swap after updating the time-weighted average price.
Disclosed
-
Router.getOrCreatePoolAndAddLiquidity can be frontrunned which leads to price manipulation
The function should not allow pool creation and liquidity addition in one transaction; instead, create the pool first and add liquidity in a separate transaction.
Disclosed
-
TWA update is not correct
The project acknowledged the issue and stated they will implement a fix for a related inaccuracy in the fractional part of the log TWAP when swapping to the price limit with tokenAIn=false and when there is a gap between bins.
Disclosed