Hunt prep
Before you test Velocimeter
What 18 disclosed reports say about Velocimeter: 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 | 13 | 0 | – | – | $0 |
| DoS lesson | 5 | 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.
-
pause or kill gauge can lead to FLOW token stuck in voter
The issue was fixed by updating the killGauge function to transfer any claimable reward tokens back to the minter before deleting the claimable amount.
Disclosed
-
swap may be reverted if the input amount is not large enough, especially for low decimal tokens
The issue was fixed by checking if the fee amount is greater than zero before calling notifyRewardAmount.
Disclosed
-
First liquidity provider of a newly created stable pair can cause DOS and loss of funds
The protocol team fixed this issue by adding a minimum K check during minting for stable pairs.
Disclosed
-
`ve_supply` is updated incorrectly
The protocol team fixed this issue by changing the comparison from `>` to `>=` so the current week is not processed early.
Disclosed
-
Voting power does not decay when calculating shares of flow emissions if the user does not vote again
The protocol team fixed this issue in a pull request, and the lead senior Watson signed off on the fix.
Disclosed
-
`update_period(..)` leads to wrong calculation in weekly emissions breaking accounting for the protocol
The team emissions calculation should divide by PRECISION instead of (PRECISION - teamRate); the protocol team fixed this in a pull request.
Disclosed
-
`DepositWithLock` done via `OptionToken` can be abused to permanently lock a user position
The protocol team fixed this issue by ensuring that exercising on behalf of someone else does not increase their lock, as per the linked PR.
Disclosed
-
voters cannot disable max lock
The protocol team fixed this issue in PR #12, and the fix was verified by the Lead Senior Watson.
Disclosed
-
User can make their `veNFT` unpokeable by voting for a to-be-killed gauge
The issue was fixed by changing the code to skip dead gauges instead of reverting.
Disclosed
-
Incorrect calculation of TWAP in OptionTokenV4.getTimeWeightedAveragePrice() function
The issue was fixed by including the current price from Pair.current() in the TWAP calculation.
Disclosed
-
poke() may be dos
The fix was to change poke() so it does not revert when a pool's weight is zero, but instead continues with the loop.
Disclosed
-
VotingEscrow MAX_DELEGATES value can lead to DOS on certain EVM-compatible chains
The MAX_DELEGATES value was reduced to 50, which lowers the gas cost of moving delegates and prevents the denial of service.
Disclosed
-
`OptionTokenV4.exerciseLP`'s `addLiquidity` lack of slippage can be abused to make victims exercise for a lower liquidity than intended
The protocol team fixed this issue by adding slippage protection for the LP amount received.
Disclosed
-
If user merges their `veNFT`, they'll lose part of their rewards
The protocol team fixed this issue by saving the last owner of a burned token so that rewards can still be claimed.
Disclosed
-
Exercising a large amount of options gives significantly higher discounts than supposed to
The protocol team fixed this issue in the referenced pull request.
Disclosed