When a user claims rewards through the Zapper's token0 or token1 claim functions, leftover tokens that were not swapped are sent back to the StakeV2 contract instead of the user. This means the user receives only part of their rewards, and the remainder is absorbed into the pool's general rewards for all stakers.
When a user starts unstaking, the contract reduces totalSupply but keeps the staking tokens in the contract, so the reward calculation sees an inflated surplus. An attacker could start an unstake and then claim more rewards than they are entitled to, draining protocol funds.
The contract's excess-reward calculation counts tokens that users have started unstaking but which are still held during a vesting period, so those tokens can be sent to the vault as if they were surplus. A user who later tries to withdraw after vesting finds the contract short of tokens, blocking the withdrawal.
The zapOut functions in the Zapper contract send leftover tokens to the caller (the StakeV2 contract) instead of the intended receiver address. As a result, users claiming rewards may lose a portion of their tokens, which remain stuck in the staking contract.
The vestings array is reordered when an entry is removed by unstake or rageQuit, so indexes shift. A user or dApp acting on stale indexes could exit the wrong vesting position, potentially losing funds.
The contract selects winning yeets by taking a random number modulo the number of yeets, which introduces a slight bias when the count is not a power of two. An attacker could exploit this bias to gain a small advantage in winning, especially as the number of players grows.
The reward distribution function in StakeV2 does not exclude tokens that are in the 10-day unstaking vesting period, so it treats them as rewards and distributes them. This can leave the contract without enough tokens to pay later unstakers, causing a loss of funds.
The reward distribution functions in StakeV2 always swap tokens through the Zapper before depositing into the Kodiak vault, even when the contract already holds enough of both tokens. This unnecessary swapping causes slippage loss, so fewer rewards reach users than the contract could otherwise distribute.
The accumulatedDeptRewardsYeet function treats any staking token balance above totalSupply as excess rewards, but during an unstaking vesting period the user's tokens stay in the contract while totalSupply has already dropped. A manager calling the reward distribution could therefore send those locked user tokens to the zapper, where they cannot be recovered.
The vault's maxWithdraw function returns an amount that does not account for exit fees, so withdrawing that amount reverts. This breaks ERC4626 compliance and may cause external integrations to fail.
The compound() function of MoneyBrinter instantly raises the vault's total assets when it deposits converted rewards into the farm, so a user who deposits just before that call and withdraws just after receives a share of rewards earned by earlier depositors. An attacker with enough capital could sandwich the compound() transaction and take part of the yield that belonged to existing depositors.
When claiming rewards from StakeV2, if the user specifies a swap input amount smaller than the token0 debt, the leftover token0 is sent to the StakeV2 contract instead of the user. This causes a permanent loss of those leftover tokens for the user.
The StakeV2 contract miscalculates excess rewards by including unstaked-but-unclaimed tokens in the reward pool, allowing a manager to distribute those tokens as rewards. This can leave the contract insolvent, preventing users from claiming their unstaked tokens.
The compound function of MoneyBrinter can be sandwiched: an attacker deposits just before a compound call and withdraws just after, capturing most of the rewards that compound distributes to liquidity providers. The attacker profits whenever the extracted value exceeds the withdrawal fee.
The vault's maxWithdraw() reports the full asset value of a user's shares without accounting for the exit fee, so a user withdrawing that reported maximum needs more shares than they hold. The withdrawal therefore reverts, wasting gas and breaking the ERC-4626 promise that maxWithdraw returns an amount that will not revert.
The claim functions in StakeV2 emit a Claimed event with a value that is zero when the recipient in the unstaking or redeem parameters is not the Zapper contract, even though tokens are actually transferred to the user. This causes off-chain systems tracking rewards to record incorrect claim amounts.
The claim function relies on user-supplied swap parameters that are simulated off-chain, so if a whitelisted manager calls compound() just before the user's withdrawal, the newly accrued yield is not swapped or sent to the user. The user receives less yield than expected, with the difference going to the StakeV2 contract and being shared among stakers.
The reward calculation function subtracts totalSupply from the contract's token balance without accounting for pending unstakes, so starting an unstake artificially inflates the apparent reward balance. An attacker can trigger a reward distribution that pays out other users' pending unstake tokens, leaving the contract insolvent and later unstakers unable to withdraw their principal.
The staking contract reduces its recorded total supply as soon as a user starts unstaking, even though the tokens stay in the contract during the vesting period. The reward calculation then treats those pending withdrawal tokens as surplus rewards and distributes them to other stakers, leaving nothing for the original user to withdraw.
The compound function in the MoneyBrinter contract contains a slippage check on islandTokensMinted that duplicates a check already performed by the Kodiak router. This redundancy adds unnecessary code complexity and gas overhead, but does not create a security vulnerability.
The StakeV2 contract incorrectly counts tokens under vesting as excess rewards because it subtracts totalSupply from the contract's token balance, and totalSupply is reduced at the start of unstaking while the tokens remain in the contract. A manager calling the reward distribution function can then convert these vesting tokens into LP positions and vault shares, permanently freezing the funds owed to users after their vesting period.
The claimable reward calculation reads the current global cap setting for every past epoch, so changing that setting retroactively alters rewards already earned. An attacker or governance change that lowers the cap causes users to lose unclaimed rewards from earlier epochs.
The contract's reward distribution calculation subtracts only the total staked supply from its token balance, ignoring tokens that are in the vesting period after unstaking. This can cause the manager to distribute those vested tokens as rewards, leaving insufficient liquidity for users to claim their unstaked tokens.
The maximum reward per wallet per epoch is stored as a single updatable variable rather than being fixed per epoch. If an admin changes this cap, users claiming rewards from past epochs may receive a different amount than originally calculated.
The Yeetback contract hardcodes the number of winners per round to ten, while the project documentation says this number is configurable. A user relying on the documentation would wrongly believe the winner count can be changed.
The reward calculation in StakeV2 incorrectly treats tokens pending unstaking as excess rewards, so when a manager calls executeRewardDistributionYeet during an unstaking period, those tokens are zapped and distributed, leaving users unable to unstake. This can permanently freeze users' staked funds.
The vault's compound function adds rewards without minting new shares, so an attacker can deposit a large amount just before the compound and withdraw just after, capturing a disproportionate share of the rewards. This allows an MEV bot to steal part of the rewards intended for regular users.
The report suggests refactoring the reward system to use a single mapping that accumulates all winnings per user, instead of separate mappings for wins per round and claimed status. This would simplify the contract and allow users to claim rewards from multiple rounds at once.
YE
Yeet
Informational
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.