Hunt prep
Before you test BMX Deli Swap
What 14 disclosed reports say about BMX Deli Swap: 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 | 10 | 0 | – | – | $0 |
| DoS lesson | 2 | 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.
-
Users' voting weight can be double-counted when finalize epoch is processed in multiple steps
Staking should be blocked while finalisation is in progress, or the tally should use a snapshot of each voter's weight from the last epoch in which it was recorded.
Disclosed
-
Unconditional lastUpdated advance in RangePool.sync leads to loss of streamed BMX when pool liquidity == 0
The sync function should return early without advancing lastUpdated when liquidity is zero, so pending amounts remain available and are applied once liquidity appears.
Disclosed
-
`Voter::finalize()` incorrect rewards distribution due to transfering WETH before calling `distributor::setTokensPerInterval()`
The fix is to call setTokensPerInterval() before transferring the WETH.
Disclosed
-
Reward Token Loss for LPs During NFT Position Transfer
The reward claim logic should be updated to reference the recorded position owner (tracked from subscription) rather than the current NFT owner.
Disclosed
-
`RangePool::adjustToTick()` desyncs when `nextTick == tick` leading to stolen fees
The break condition in RangePool::adjustToTick should be corrected to properly cross ticks when nextTick equals tick; the protocol team fixed this issue in a pull request.
Disclosed
-
DoSed `Voter::finalize()` due to unbounded pending removals lacking a batch argument variable
The cleanup should accept a batch argument so removals are processed in bounded chunks.
Disclosed
-
Attacker can swap wBTC in the DeliHook multiples times to not pay / pay less swap fees
The protocol team fixed this issue by rounding up the fee.
Disclosed
-
Users always pay fee on the full swapped amount in the `DeliHook`, even if the swap is smaller
The fee should be adjusted to apply only to the actual amount swapped.
Disclosed
-
Protocol fee conversion uses pre‑swap price snapshot
The protocol team fixed this issue by delaying the conversion to wBLT until after the swap and using the post-swap price.
Disclosed
-
Gas consumed in `notifyUnsubscribe` is underestimated during tests and is greater than 300,000 without pre-warming
Further gas optimisations must be made to `notifyUnsubscribe` to stay under the limit, or a pending unsubscribe flag could be set to defer heavy work.
Disclosed
-
Finalize-window vote-changing vulnerability: auto-voters can alter choices post-epoch to manipulate results
The contract should record the epoch at which auto-vote becomes effective and only count votes for epochs at or after that, or freeze auto-vote changes once an epoch has ended.
Disclosed
-
In the `IncentiveGauge._upsertIncentive()` function, `_updatePoolByPid()` should be called outside the `if` statement
The pool accounting update should be moved outside the conditional so it always runs before the new schedule is set; the protocol team fixed this issue.
Disclosed
-
Integer Truncation in Incentive Rate Permanently Locks Unstreamed Rewards
The protocol team fixed this issue by rounding the deposit down to a full-week multiple and handling the remainder immediately.
Disclosed
-
`DeliHookConstantProduct` swapping `exactOutput` and `_feeFromOutput` is incorrect
The fee calculation for exactOutput swaps should be corrected so that the fee matches the intended amount, as hinted in the root cause.
Disclosed