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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
AL
Alchemix
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.