In the withdraw function of the Leverager contract, when the borrowed asset is token1, the code mistakenly uses amountOut0 instead of amountOut1 in a conditional subtraction. This causes an arithmetic underflow if amountOut1 is less than the owed amount, reverting the transaction and blocking withdrawals for token1 borrowers.
Interest accrual in the lending pool rounds down when the calculated interest is smaller than one unit of the asset, so frequent index updates can record no interest at all. An attacker could repeatedly deposit and redeem small amounts to force frequent updates, reducing or eliminating the profit owed to depositors.
The Vault::withdraw function withdraws too many shares from the liquidity position when idle capital is insufficient, ignoring the idle capital already available. This leaves excess tokens idle, causing a loss of fees.
The strategy's tick-alignment logic misclassifies ticks as lower-sided when the tick spacing is one, so the main position's lower and upper ticks are not symmetric around the current price. This causes the position to allocate less liquidity on one side and miss out on fees when the price moves there.
The collectFees() function uses the main position's upper tick instead of the vesting position's upper tick when collecting fees, causing fees to be lost or the call to revert if the vesting lower tick exceeds the main upper tick. This can block deposit, withdraw, rebalance, and compound, and prevent the vesting position from being closed, potentially locking the protocol.
The liquidation check in Leverager uses the vault's max leverage instead of the lending pool's lower max leverage, underestimating the base amount. This can prevent users from being liquidated when they should be, causing the protocol to take losses and risk bad debt.
An integer overflow in the observation index calculation of the Strategy contract causes a revert when observationCardinality and currentIndex are large enough. This blocks critical functions like rebalance and compound, leading to a denial of service.
The liquidation fee calculation divides by the token's decimal count instead of 10 raised to that power, inflating the borrowed value. This prevents the fee recipient from ever receiving liquidation fees because the condition for fee collection is never met.
The liquidation check in the Leverager contract prevents opening positions with leverage above 2x, contradicting the intended design that allows higher leverage. An attacker could not exploit this, but it limits the protocol's functionality.
The strategy contract derives its main position tick range from the pool's stored slot0 tick rather than from the actual sqrt price, so when the price sits exactly on a tick boundary the range is shifted by one tick. This makes the position asymmetric, and a tiny swap can push the price out of range, causing the position to earn fewer fees.
The Leverager contract's feeRecipient variable is never initialised and has no setter, so when liquidatePosition sends fees they go to the zero address. This causes a loss of protocol fees.
The smart contract's interest index calculation uses a stale utilization rate, so borrowers pay less interest than they should. The impact depends on utilization but is likely constrained.
The vault's deposit calculation multiplies three 18-decimal values, which can overflow for low-priced tokens and cause deposits to revert. An attacker could exploit this to prevent deposits, making users miss yield and favourable entry prices.
The strategy's secondary position tick calculation mishandles negative modulo, causing the position to become active when it should be out-of-range and potentially causing a division by zero when ticks become equal. An attacker could trigger a rebalance under specific conditions to make the strategy unusable.
The Leverager contract's deposit function fails to support multi-hop swaps because the internal function _getTokenIn does not update the path variable when skipping tokens, causing an infinite loop. This prevents users from performing multi-hop swaps as intended.
YI
Yieldoor
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.