When a gauge is paused or killed, its unclaimed reward tokens are set to zero without being returned to the minter or distributed, leaving them stuck in the voter contract. An attacker cannot directly exploit this, but the emergency council's action causes a loss of funds.
The swap function sends fees to an external bribe contract, but if the calculated fee rounds down to zero (possible with low-decimal tokens), the bribe contract rejects zero amounts and the swap reverts. An attacker could cause swaps to fail by choosing small input amounts, disrupting trading for affected pools.
The stable pair curve in Pair::_k() rounds down to zero when the product of scaled reserves is less than 1e18, allowing the first liquidity provider to mint LP tokens with tiny amounts and then swap out most of the pool without the invariant check failing. This can inflate totalSupply close to overflow, causing denial of service for future depositors and preventing redeployment of the pair.
An incorrect time check in the rewards distributor causes the total voting escrow supply for the current week to be recorded before the week ends. A malicious user can create a new voting escrow NFT right after the checkpoint and capture almost all future distribution rewards, leaving other users unable to claim.
Voting power is supposed to decay linearly over time, but the Voter contract only recalculates a user's voting weight when they vote again. If a user does not vote, their old, higher weight remains, so the pool they voted for receives more emissions than it should, at the expense of other pools.
The team emissions calculation in update_period() divides by (PRECISION - teamRate) instead of PRECISION, causing team emissions to be overestimated. An attacker could not directly exploit this, but it leads to more FLOW being minted to the team than intended, breaking accounting for the protocol and integrators.
The `depositWithLock` function in `GaugeV4` has a check to prevent re-locking someone else's position, but this check can be bypassed by calling `OptionTokenV4.exerciseLp` on behalf of the victim. An attacker can extend a victim's lock indefinitely at negligible cost, preventing them from unlocking their tokens.
The disable_max_lock function incorrectly updates the maxLockIdToIndex mapping when removing the last element from the max_locked_nfts array, leaving a stale index. This prevents voters from disabling maxLock, which in turn prevents them from withdrawing their assets because their lock end time decreases on each withdrawal attempt.
A user can make their veNFT unpokeable by voting a small amount to a gauge that is about to be killed, because the poke function reverts when it encounters a dead gauge. This allows the user's outdated voting power to persist, giving their chosen pool more emissions and themselves more bribes than deserved.
The getTimeWeightedAveragePrice() function in OptionTokenV4 calculates the average price using only past observations from the Pair contract, ignoring the current price, so the returned price can be up to 30 minutes out of date. An attacker could exploit this stale price to exercise options at an incorrect discount, potentially causing losses for the protocol or users.
The poke() function in a voting contract can be made to revert by ensuring one pool's calculated weight rounds down to zero, preventing the governor from updating voting weights for that NFT. This allows a malicious voter to keep outdated weights, causing some gauges to receive more rewards than they should.
The VotingEscrow contract has a hardcoded maximum number of delegates (1024) that can cause a denial of service on EVM-compatible chains with lower block gas limits, because moving that many delegates consumes more gas than the block limit. An attacker could delegate many small locks to a victim's tokenId, making functions like transferFrom, withdraw, merge, and mint revert due to out-of-gas, locking the victim's funds.
The exerciseLP function in OptionTokenV4 lacks a slippage check on the amount of LP tokens received, and it calculates the payment token amount using spot reserves. An attacker can front-run and imbalance the pool so that the victim receives far fewer LP tokens for the same amount of option tokens burned.
When a user merges their veNFT, the source token is burned, but rewards for the current week are not yet claimable due to a one-week lag in the rewards distributor. As a result, the user loses at least one week of rewards.
The option token contract calculated the payment amount using an average of swap outputs for a given amount, which made larger exercises cheaper per token. An attacker could exercise a large number of options in one transaction to get a significantly higher discount than intended.
The Voter contract's addFactory and replaceFactory functions have incorrect validation checks, allowing duplicate factories or gauge factories to be added to arrays. This breaks an invariant and can cause a denial of service when calling createGauge.
Rewards sent to a gauge before its first depositor are permanently locked because the gauge's reward accounting does not handle a zero total supply. An attacker or automated process could cause loss of funds by triggering reward distribution to an empty gauge.
The circulating_supply() function in the Minter contract could revert if the total supply of Flow tokens is less than the total supply of veTokens, causing the weekly token emission to fail. This could lead to a systemic denial of service, preventing the protocol from emitting tokens.
VE
Velocimeter
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.