Skip to content

Immunefi

Alchemix

Every publicly disclosed report for Alchemix and what kind of bugs they were.

disclosed reports
181
most reported class
Business logic
bug classes found
5
first disclosure
2024
Find Alchemix on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Alchemix chose to make public.

Audit finding

Loss of precision while calculating claimable f

The contract uses a multiplier of 2 when computing slope and bias for locked balances, so small amounts multiplied by 2 and divided by the max lock time round down to zero. This causes the claimable flux and the point's bias and slope to be understated for small deposits.

Alchemix

High
Business logic

RewardPoolManager can only add RewardPoolToken

The RewardPoolManager contract can add reward tokens but has no way to remove them and caps the list at ten, so a token that becomes worthless or malicious cannot be dropped. Separately, the admin's setClaimFee function in VotingEscrow has no upper bound, allowing an arbitrarily high early-claim fee.

Alchemix

Informational
Business logic

Collection of other important issues

The report lists several separate smart-contract issues in the Alchemix DAO contracts, including a constructor check that validates the wrong variable, a missing expiry check in the poke function, and a flash-loan protection applied inconsistently between two balance functions. Together these could let a user vote with an expired token, inflate voting power with a flash loan, or set an out-of-range treasury percentage.

Alchemix

Informational
Business logic

Users could start cooldown period for their wit

Several boundary comparisons in the voting escrow and bribe contracts treat a lock as expired only when the timestamp is strictly greater than the lock end, while the cooldown start check uses a strict less-than. This lets a user begin the cooldown at the exact lock-end timestamp without burning any FLUX tokens, so they keep both their FLUX and their deposited tokens.

Alchemix

Low
Business logic

Loss Of Boosted Weight When Poking In The Same

The Voter contract's poke function resets the boost to zero when recalculating a user's vote, so a user who pokes within the same boosted period loses their boosted voting weight. This can leave unclaimed bribe rewards permanently frozen in the contract.

Alchemix

Critical
Business logic

Off by one error while adding reward pool token

The contract's check for the maximum number of reward pool tokens uses a strict less-than comparison, so it allows one more token than the intended limit. An attacker could add an extra token, potentially causing unexpected behaviour such as exceeding storage limits or increased gas costs.

Alchemix

Informational
Business logic

Infinite mint of FLUX using poke

The Voter contract's poke function repeatedly calls FluxToken.accrueFlux, which adds the same claimable FLUX amount to a user's unclaimed balance each time, without reducing it. An attacker could call poke repeatedly to inflate unclaimed FLUX and then claim it as real tokens, minting unlimited FLUX.

Alchemix

Critical
Business logic

DepositIntoRewardPool and withdrawFromRewardPo

The deposit and withdraw functions in the RewardPoolManager contract call the underlying ERC4626 reward pool without any slippage protection. Because the share-to-asset ratio can move, an attacker front-running the transaction could cause the user to receive fewer shares on deposit or fewer tokens on withdrawal.

Alchemix

Medium
Smart contracts

VotingEscrowsolcheckpoint is completely broken

The VotingEscrow contract's checkpoint function increments the epoch counter every week instead of every two weeks, causing the epoch accounting to be incorrect. This breaks the checkpoint mechanism used throughout the protocol, including reward distribution, potentially leading to protocol insolvency.

Alchemix

Critical
Audit finding

Checkpoints wont update block number in point b

The checkpoint calculation in VotingEscrow uses a multiplier too small to produce a non-zero block slope, so the stored block number in each checkpoint never advances. Any off-chain computation that relies on the checkpoint block number would use a stale value.

Alchemix

Medium
Audit finding

Oracle days staleThreshold for priceTimestamp

The RewardsDistributor contract uses a 60-day stale threshold for Chainlink oracle price timestamps, which is far longer than the oracle's 1-day heartbeat. An attacker could exploit stale prices to cause incorrect compounding amounts, leading to protocol insolvency or theft of user funds.

Alchemix

Low
Business logic

Every consecutive epoch will have same number o

The Minter contract's updatePeriod function resets the stepdown variable when rewards are less than or equal to TAIL_EMISSIONS_RATE, but the intended condition is to reset only when rewards have reached or exceeded that rate. This causes stepdown to become zero prematurely, so subsequent epochs have the same rewards value instead of decreasing.

Alchemix

Medium
Business logic

Minter UpdatePeriod after weeks causes Rewards

The Minter contract's _checkpointToken function updates lastTokenTime to the current block timestamp even though it only distributes rewards for up to 20 weeks, so any time beyond 20 weeks is skipped. An attacker or negligent operator could cause users to permanently lose unclaimed rewards proportional to the elapsed time beyond 20 weeks.

Alchemix

Low
Business logic

Discrepancy in MAX_PROPOSAL_NUMERATOR Value in

The AlchemixGovernor contract sets MAX_PROPOSAL_NUMERATOR to 5000 (50%) instead of the documented 6600 (66%), so the admin cannot set the proposal threshold above 50%. This prevents the governance system from operating as intended, but does not cause loss of funds.

Alchemix

Informational
Business logic

Unfair Revenue Distribution in Non-Alchemix Rev

The RevenueHandler contract calculates non-Alchemix revenue for each epoch using the contract's total token balance, which includes unclaimed revenue from previous epochs. This allows a user to lock tokens just before an epoch ends and claim a disproportionate share, potentially preventing earlier users from claiming their rewards.

Alchemix

Critical
Business logic

RewardsDistributoramountToCompound - L The stal

The RewardsDistributor contract's stale price threshold was left at 60 days instead of the intended 30 days, so price data between 30 and 60 days old is accepted as fresh. This could cause users to receive more or less compounded rewards than they should.

Alchemix

Low
Business logic

Lack of the validation for a Flash token protec

The getVotes function in the VotingEscrow contract does not apply the same-block flash-token protection that balanceOfToken uses, so voting power is counted even in the block a veALCX token was transferred. An attacker could therefore transfer tokens and have their votes counted in the same block, potentially manipulating governance results if voting relies on getVotes.

Alchemix

Informational
Business logic

Certain small amount of tokens are not accounte

A small deposit into a locked voting escrow position does not increase the user's voting power because the bias calculation divides by a large time constant, causing the increment to round down to zero. An attacker could repeatedly deposit tiny amounts without gaining any voting power, though the financial loss is minimal.

Alchemix

High
Business logic

Bribeearned - L Its potentially possible to ear

The Bribe contract's earned function uses a strict less-than comparison when checking whether an epoch has ended, so a user could potentially claim bribe rewards twice within the same epoch. The proof-of-concept test showed a second claim attempt was not blocked by the check, though it failed due to insufficient contract balance.

Alchemix

Low
Business logic

FluxTokens unlimited mint and Exploitation of g

The FluxToken contract allows the accrueFlux function to be called multiple times within the same epoch via the Voter.poke function, enabling an attacker to mint an unlimited amount of flux tokens. This can be used to gain a disproportionate voting boost and secure the majority of reward tokens.

Alchemix

Critical
Business logic

Expired Token Locks Impacting Vote Weight Calcu

The voting escrow contract's balance calculation does not check whether a token's lock has expired, so expired locks may still contribute to voting power. This could distort governance outcomes by letting outdated stakes influence current decisions.

Alchemix

Informational
DoS

The Voterdistribute function can continue to fail

The Voter.distribute function iterates over all gauges and can revert if any gauge's passthrough rewards require a proposal update that has not been performed, or if the loop exceeds the block gas limit. An attacker could cause the distribution to fail repeatedly, leading to lost gas costs and potentially stopping the protocol.

Alchemix

Medium
Business logic

No accounting for totalVoting in Bribesolwithdr

The withdraw function in Bribe.sol does not decrease totalVoting, so a user can repeatedly call poke to inflate totalVoting and reduce the yield earned by other voters. This can permanently freeze or lose unclaimed yield.

Alchemix

Critical
Business logic

A user is able to claim more bribes than they h

A user can claim bribes for epochs they did not vote in because the bribe balance is not reset after claiming. An attacker could repeatedly claim bribes and drain funds meant for other voters.

Alchemix

Critical
Audit finding

Rounding down in getClaimableFlux leads to less

The getClaimableFlux function performs multiplication after division, causing rounding down and minting fewer FLUX tokens than the depositor should receive. An attacker or user could permanently lose unclaimed yield due to this precision loss.

Alchemix

High
Business logic

USDT Approval will cause function failure

The contracts call USDT's approve function without first resetting the allowance to zero, which USDT requires. This causes the claim and depositIntoRewardPool functions to revert when used with USDT, preventing deposits and claims.

Alchemix

Low
Business logic

Early return in RewardsDistributorclaim can cau

The claim function in RewardsDistributor returns early when a user has no ALCX rewards, without checking or refunding any ETH sent with the call. An attacker or careless user could send ETH in a compounding claim that returns early, leaving the ETH permanently stuck in the contract.

Alchemix

Medium
Business logic

Incorrect accounting of totalVoting leads to pe

The Bribe contract's deposit function increases totalVoting, but withdraw does not decrease it, so repeated poke calls inflate totalVoting. This causes bribe rewards to be calculated with an inflated denominator, so all voters receive less than they should and the remaining tokens are permanently locked.

Alchemix

Critical
Business logic

Lack of revert statement in Votersolpoke result

The poke function in Voter.sol does not revert when called by a first-time voter with no existing pool votes, marking the token as voted without any actual votes. This prevents the user from voting in the current epoch and causes them to lose all yield for that epoch.

Alchemix

Low
DoS

Malicious users can cause pokeTokens to revert

A malicious user can front-run the admin's pokeTokens call by resetting their own token, causing the entire batch to revert because reset requires a new epoch. This wastes the admin's gas and delays the reset of gauge votes.

Alchemix

Medium