The OCY_Convex contracts incorrectly treat Convex's VirtualBalanceRewardPool as an ERC20 token, so they cannot claim or forward extra rewards to OCT_YDL. This results in a loss of additional rewards that accumulate over time.
The distributeYield function incorrectly uses the protocol earnings array when emitting an event for residual recipients, causing an out-of-bounds access and revert if the residual recipients list is longer than the protocol recipients list and includes a reward contract. This prevents yield distribution from succeeding.
The depositReward function lacks access control and allows anyone to call it with zero reward amount, causing precision loss that leaves reward tokens stuck in the contract. An attacker could repeatedly call this function to lock a significant portion of rewards, especially for tokens with few decimals like USDC or WBTC.
The reward calculation in ZivoeTranches uses the average of the start and final ratios, which can cause the reward to be miscalculated when the ratio crosses the lower or upper incentive bound. An attacker could exploit this by splitting deposits to receive more rewards than intended, leading to a loss of funds for the protocol or the depositor.
The exponential moving average (EMA) calculation in the yield distribution contract ignores the initial data points set during unlock, because the distribution counter starts at 0 and is incremented to 1 before the EMA formula is called, causing the formula to return only the latest value. This leads to incorrect EMA values and thus incorrect yield distribution.
The OCE_ZVE locker calculates reward decay using a lastDistribution timestamp that is set at deployment and only updated on distributions. If a long idle period passes before the first distribution, the elapsed time is treated as decay time, so a large portion of rewards becomes immediately claimable instead of decaying gradually.
The forwardYield function relies on Uniswap V2 pool reserves to calculate yield, which an attacker can manipulate to set the basis to a very small value. This allows the attacker to later call forwardYield and steal funds by distributing an inflated amount as yield.
The yield distribution function calculates each recipient's share using the current total supply of staked and vesting tokens, which can be temporarily inflated by a large stake just before the function is called. An attacker could use a flash loan to stake a large amount, call the distribution function to increase the staked token's share of rewards, then unstake and sell back the tokens, thereby diverting rewards from vesting token holders.
The APR calculation in OCC_Modular::applyCombine rounds down, allowing a user to reduce the APR on a combined loan by one basis point. This results in a small loss of interest for the protocol.
The ZivoeRewards contract updates the reward period timestamp even when no one is staking, so rewards deposited during that time are not distributed to anyone and become permanently locked. An attacker could trigger this by calling the public distributeYield function when there are no stakers, causing loss of funds.
A bullet loan borrower can pay less interest by calling `callLoan` at the end of the payment period instead of making each interval payment. This allows the borrower to skip paying interest and late fees for multiple missed intervals, as `callLoan` only charges one interval's late fee.
The yield forwarding function in a smart contract could be called repeatedly because its next distribution timestamp was initialised to zero and then incremented by 30 days, leaving it far in the past. An attacker could call the function many times, breaking the intended 30-day limit.
The function pushToLockerMulti() in OCL_ZVE asserts that token allowances to the UniswapV2 router are zero after adding liquidity, but because a 90% minimum is set, the actual transferred amount can be less than the desired amount, leaving a non-zero allowance and causing the assertion to fail. This makes the function revert most of the time, breaking the locker's core functionality.
The claimRewards function in OCY_Convex_C incorrectly assumes the extra reward token is the reward contract itself, but for Convex pools with IDs 151+ the reward token is a wrapper contract. As a result, the balance check always returns zero and extra rewards are never forwarded, causing a loss of yield.
The depositReward function could be called by anyone with zero reward, which extended the reward period finish time and reduced the reward rate. This could cause users to receive fewer rewards than expected within the same time period.
The Convex admin can add an unlimited number of extra reward tokens to a reward pool, which causes the claimRewards function to run out of gas. As a result, the Zivoe DAO cannot withdraw its funds from the Convex locker, leaving user assets stuck.
The ITO airdrop calculation uses the current total supply of tranche tokens, which can be reduced by burning. An attacker with two accounts can claim a larger share of the airdrop by burning their tranche tokens before a second claim, potentially denying other users their entitled ZVE tokens.
The convertAndForward functions in OCT_DAO and OCT_YDL set a token allowance for the 1inch router but do not reset it after the swap. If the router does not use the full allowance, the leftover allowance causes an assertion that the allowance is zero to fail, reverting the transaction.
ZI
Zivoe
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.