Hunt prep
Before you test Alchemix
What 181 disclosed reports say about Alchemix: 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 14
Ideas drawn from this program's disclosed reports and our class lessons. None of them is a known bug: each is a place to look, and the reports linked under it are why. Check the current scope before testing anything.
-
1
Test poke and merge paths for repeated FLUX accrual
Business logic Read the lesson
Several reports show FLUX being minted more than once through poke, merge and reset sequences. Exercise combinations of poke, merge and reset across epochs on VotingEscrow and Voter and check whether claimable FLUX is counted once per position or once per action.
Backed byInfinite mint of FLUX using poke (2024) Infinite minting of FLUX through Merge (2024) Undound FLUX accrual through reset and merge (2024)+2 more reports
From the lessons: Reward accumulation updates in staking and vault contracts.; Functions that make external calls to tokens, native currency or NFTs...
-
2
Check totalVoting accounting on every Bribe write path
Business logic Read the lesson
Reports repeatedly show totalVoting drifting from actual votes after withdraw, merge and checkpoint writes. Walk every Bribe function that changes a balance and confirm the tracker is updated consistently, including paths that were not covered by the earlier fixes.
Backed byNo accounting for totalVoting in Bribesolwithdr (2024) Incorrect accounting of totalVoting leads to pe (2024) Bribesolwithdraw doesnt update the totalVotings (2024)+2 more reports
From the lessons: Reward accumulation updates in staking and vault contracts.; Trigger an internal outflow and check whether deposited share counters...
-
3
Probe RevenueHandler checkpoint for double counting
Business logic Read the lesson
Many reports concern RevenueHandler counting unclaimed or already distributed tokens as new revenue. Test checkpoint and claim sequences across epochs, including tokens with different decimals and fee-on-transfer behaviour, and check whether balances and per-epoch totals stay consistent.
Backed byUnfair Revenue Distribution in Non-Alchemix Rev (2024) Miscalculation of distributed tokens at revenue (2024) RevenueHandlercheckpoint counts unclaimed rewar (2024)+2 more reports
From the lessons: Yield distribution and reward treasury contracts.; Test the protocol with several ERC20 variants (different decimals, no...
-
4
Test rounding and division order in FLUX and reward maths
Business logic Read the lesson
Rounding and division-before-multiplication appear in several FluxToken and VotingEscrow reports. Recheck getClaimableFlux, calculateBPT and amountToRaise with small and extreme values, and confirm the order of operations and scaling by basis points is correct on each path.
Backed byLoss of precision while calculating claimable f (2024) Precision Loss in FluxTokensolgetClaimableFlux (2024) FluxTokencalculateBPT uses wrong algorithm caus (2024)+2 more reports
From the lessons: Compare the protocol's computed slippage bound against the true expect...; Mint or redeem shares and check whether the function enforces a minimu...
-
5
Check checkpoint binary search with duplicate timestamps
Business logic Read the lesson
Reports show checkpoint and binary search logic mishandling block numbers and duplicate entries. Test VotingEscrow and Bribe checkpoint lookups around equal timestamps, epoch boundaries and the first epoch, and confirm the returned point matches the intended one.
Backed byVotingEscrowsolcheckpoint is completely broken (2024) Checkpoints wont update block number in point b (2024) Binary search does not correctly handle duplica (2024)+2 more reports
From the lessons: Reward accumulation updates in staking and vault contracts.
-
6
Exercise merge and withdraw for lost unclaimed rewards
Business logic Read the lesson
Several reports describe rewards or bribes being frozen when positions are merged, withdrawn or burned. Test merge, withdraw and burn flows on VotingEscrow and check that pending ALCX, FLUX and bribe rewards are claimed or remain claimable afterwards.
Backed byLoss of Unclaimed Bribes After Burning veALCX T (2024) Withdraw doesnt claim all rewards before burnin (2024) Alcx rewards are permanently frozen when two to (2024)+2 more reports
From the lessons: Reward accumulation updates in staking and vault contracts.; Vault deposit, withdraw and redeem functions across yield and staking...
-
7
Test expired and cooled-down locks against vote weight
Business logic Read the lesson
Reports show expired locks and cooldown states still influencing vote weight and reward claims. Check how VotingEscrow and Voter treat locks past their unlock time or in cooldown when voting, poking and claiming, and whether weight matches the remaining lock.
Backed byUsers could start cooldown period for their wit (2024) Expired Token Locks Impacting Vote Weight Calcu (2024) Expired locks can be used to claim rewards (2024)+2 more reports
From the lessons: Reward accumulation updates in staking and vault contracts.
-
8
Review governance threshold and quorum edge cases
Business logic Read the lesson
AlchemixGovernor reports cover proposal thresholds, quorum changes and execution of old proposals. Test proposal creation and execution around threshold and quorum boundaries, including proposals that were defeated or created before a parameter change.
Backed byDiscrepancy in MAX_PROPOSAL_NUMERATOR Value in (2024) Incorrect value of MAX_PROPOSAL_NUMERATOR in Al (2024) Bypassing the Governances proposal threshold to (2024)+2 more reports
From the lessons: Proposal creation and configuration functions that can be front-run.; Two-step admin and ownership transfer functions.
-
9
Check reward distribution for first-epoch and zero-week cases
Business logic Read the lesson
Reports show RewardsDistributor and Minter mishandling the first epoch, zero tokens per week and update timing. Test distribution across the first epochs and after period updates, and confirm rewards are neither frozen nor double counted.
Backed byEvery consecutive epoch will have same number o (2024) Minter UpdatePeriod after weeks causes Rewards (2024) Rewards for the first epoch at rewards distribu (2024)+2 more reports
From the lessons: Yield distribution and reward treasury contracts.
-
10
Test access control on poke, addReward and gauge admin calls
Access control Read the lesson
Access control gaps appear in poke, addReward and gauge management reports. Check who can call poke, addReward and gauge kill or revive functions, and whether a lower-privileged caller can trigger state changes meant for admins.
-
11
Probe griefing through delegation and user point limits
Reports describe griefing by filling delegation slots and user point arrays to block withdrawals. Test delegation and checkpoint writes near their limits and check whether an attacker can prevent a victim from delegating, withdrawing or merging.
Backed byDOS attack by delegating tokens at MAX_DELEGATES (2024) Griefing Attack using delegate will expose User (2024) Anyone can let users delegates reach the upper (2024)+2 more reports
From the lessons: Reward accumulation updates in staking and vault contracts.
-
12
Check token approval and transfer return handling
Business logic Read the lesson
Reports cover USDT-style approvals and tokens that do not return a boolean. Test RewardPoolManager and RevenueHandler with tokens that reject non-zero-to-non-zero approvals or return false, and confirm deposits and swaps revert cleanly rather than freezing funds.
Backed byUSDT Approval will cause function failure (2024) DepositIntoRewardPool and withdrawFromRewardPo (2024) Alchemist is given over Allowance through Reven (2024)+1 more report
From the lessons: Deposit a USDT-like token that rejects non-zero-to-non-zero approvals...; Call every transfer and transferFrom path with a token that returns fa...; Use a token whose approve and transfer do not return a boolean and che...
-
13
Test slippage bounds on revenue swaps and reward pools
Business logic Read the lesson
Several reports concern inaccurate or missing slippage protection in RevenueHandler and RewardPoolManager. Check that swap and deposit paths enforce a user-supplied minimum output and that the bound reflects the true expected amount.
Backed bySlippage protection is inaccurate (2024) Insufficient slippage control in RevenueHandler (2024) Misuse of curve pool calls results for precisio (2024)+1 more report
From the lessons: Check whether every swap, deposit or mint path enforces a user-supplie...; Compare the protocol's computed slippage bound against the true expect...; Trigger a reward token swap with no slippage bound and check whether i...
-
14
Look for front-running around distribute and claim
Business logic Read the lesson
Reports show distribute and claim being front-run to capture rewards or block others. Test ordering around Voter distribute, Bribe claim and RevenueHandler claim, and check whether a back-run or front-run changes who receives rewards.
Backed byMalicious user can back-run Voterdistribute to (2024) Malicious users can front-run the distribution (2024) Malicious actor can acquire bribe rewards by bl (2024)+2 more reports
From the lessons: Reward accumulation updates in staking and vault contracts.; Liquidation, repayment and debt takeover flows where front-running can...
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 | 147 | 0 | – | – | $0 |
| DoS lesson | 11 | 0 | – | – | $0 |
| Smart contracts lesson | 10 | 0 | – | – | $0 |
| Access control lesson | 4 | 0 | – | – | $0 |
| Misconfiguration 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.
-
Loss of precision while calculating claimable f
The multiplier constants should be increased from 2 to 1e18 to preserve precision.
Disclosed
-
RewardPoolManager can only add RewardPoolToken
The report suggests adding a way to remove reward tokens and an upper limit check on the claim fee, but does not state that either was fixed.
Disclosed
-
Collection of other important issues
The report recommends validating the constructor argument itself, adding the expiry check to poke, applying the flash-loan guard consistently across balance functions, and using Ownable2Step.
Disclosed
-
Users could start cooldown period for their wit
The boundary comparisons should be corrected so the cooldown can only start before the lock end when FLUX is burned, and the other checks should use consistent inclusive comparisons.
Disclosed
-
Loss Of Boosted Weight When Poking In The Same
The poke function should be updated to correctly account for the accumulated boost by calculating and passing the boost to _vote, ensuring it is retained within the same epoch.
Disclosed
-
DepositIntoRewardPool and withdrawFromRewardPo
Slippage protection should be added to both functions so callers can specify a minimum acceptable amount of shares or tokens.
Disclosed
-
VotingEscrowsolcheckpoint is completely broken
The epoch should be incremented only every two weeks, not every week, by adjusting the loop to increment _time by 2 * WEEK or by incrementing _epoch conditionally.
Disclosed
-
Checkpoints wont update block number in point b
The multiplier should be increased to a much higher value, around 10000, so the division does not truncate to zero.
Disclosed
-
Every consecutive epoch will have same number o
The condition should be changed from `<=` to `>=` so that stepdown is reset only when rewards meet or exceed TAIL_EMISSIONS_RATE.
Disclosed
-
Minter UpdatePeriod after weeks causes Rewards
The _checkpointToken function should update lastTokenTime by only the 20 weeks it actually processed, not to the current block timestamp, so that excess time is not skipped.
Disclosed
-
Discrepancy in MAX_PROPOSAL_NUMERATOR Value in
The constant should be updated to 6600 to match the documented value.
Disclosed
-
Unfair Revenue Distribution in Non-Alchemix Rev
The checkpoint function should track deposits and withdrawals separately per epoch and calculate new revenue by subtracting last epoch's revenues (excluding claims) from the current balance.
Disclosed
-
RewardsDistributoramountToCompound - L The stal
The stale threshold should be set back to 30 days.
Disclosed
-
Lack of the validation for a Flash token protec
The getVotes function should skip adding a token's voting power when ownershipChange for that token equals the current block number, mirroring balanceOfToken.
Disclosed
-
Certain small amount of tokens are not accounte
The issue should be fixed by establishing a minimum deposit requirement.
Disclosed