The vault's pricing function uses the Velodrome router to get the best price across stable and volatile pools, but requires the trade to go through the correct pool type. A malicious user can manipulate the price of the opposite pool so that the router routes through the wrong pool, causing liquidation calls to revert and avoiding liquidation.
When users deposit Lyra LP tokens as collateral, the tokens are transferred to a vault that does not implement a method to claim or distribute OP rewards. As a result, users lose all OP rewards they would have earned.
Two time-delay constants in the smart contracts were set to values far shorter than intended (3 seconds instead of 3 days, and 200 seconds instead of 2 days). This meant admin settings could be changed with almost no delay, giving users little time to react.
The protocol continued to accrue interest on loans while vaults and collateral types were paused, even though users could not add collateral or close their loans during that time. This could force users to pay more interest than expected or make their loans unexpectedly liquidatable.
The smart contract used a fixed 24-hour heartbeat for an oracle, which could allow stale price data to be used. An attacker could potentially front-run transactions to exploit the stale data.
The deposit receipt contracts check liquidity by swapping a fixed 100 tokens to USDC, which fails for high-value tokens like WBTC due to slippage, making those LPs unusable and potentially trapping user funds or allowing risk-free loans.
The vault calculates collateral value in two different ways: one sums pooled tokens before pricing, the other prices each NFT individually and truncates. This can cause the check for full liquidation to fail even when all collateral is taken, leaving bad debt uncleared.
The oracle wrapper calls Chainlink's latestRoundData() but does not check that the round is complete, so it may accept stale or zero prices. An attacker could exploit this to cause incorrect liquidations or inappropriate loans.
The vault contracts require that a user's collateral value be at least the borrow margin when adding collateral, which prevents users from gradually increasing collateral to avoid liquidation. An attacker could not exploit this, but it may lead to unnecessary liquidations and protocol losses.
A user can withdraw a deposit NFT from another user's depositor contract because the burn function does not verify that the caller is the depositor that minted the NFT. This allows the attacker to keep their own deposit staked and collect rewards on the victim's tokens, effectively stealing the victim's rewards.
The public withdrawFromGauge function in the Depositor contract burns a deposit NFT and sends the withdrawn tokens to the caller, but it does not check that the caller owns the NFT. After a user approves the Depositor to burn their NFT, an attacker can call the function first and receive the user's funds.
The vault's oracle helper reverts whenever a queried asset's price falls outside fixed minimum and maximum bounds, and every vault interaction prices the collateral. If either asset in a liquidity pair left that range, closing a loan would revert and users could not withdraw their collateral.
The closeLoan function required that after repaying debt and withdrawing collateral, the remaining debt still met the minimum opening margin. This prevented users from making partial repayments without also withdrawing collateral, potentially leading to unfair liquidations.
The DepositReceipt contract caches the min and max price limits from the Chainlink aggregator at construction time, but the aggregator address can be changed by the owner, making these cached limits invalid. This could cause priceLiquidity() to revert and stop working.
The openLoan function used the wrong variable (isoUSDLoaned instead of isoUSDLoanAndInterest) to calculate total borrowed USD, so an attacker could repay principal but leave interest, then open a new loan without sufficient collateral.
The virtual price update function calculates interest in 3-minute increments but stores the current timestamp instead of the truncated interval time, causing interest to be lost when called frequently. An attacker with a large loan could repeatedly call the function to effectively halve their interest accumulation.
The contract's constant for the collateral change delay was set to 200 seconds instead of the intended 2 days, allowing an admin to bypass the time delay and change collateral type after waiting only about 3 minutes and 20 seconds.
The protocol assumed USDC and sUSD were always worth exactly $1 when pricing collateral, but these stablecoins can deviate from their peg. An attacker could exploit this mispricing to avoid liquidations or cause unfair liquidations, and create arbitrage opportunities affecting isoUSD.
The Vault_Synths.sol contract did not account for the Synthetix exchange fee when valuing collateral, unlike Vault_Lyra.sol which did. This could overvalue collateral, leading to bad debt and potential insolvency.
Pausing a collateral type set its validity flag to false, which caused loan closure and liquidation functions to revert. This trapped users' funds and prevented the protocol from liquidating bad debt.
The Lyra vault always subtracts a withdrawal fee when pricing collateral, but the actual Lyra pool only applies that fee when the option market has live boards. This under-values user collateral, potentially making it liquidatable sooner and allowing a liquidator to profit unfairly.
IS
Isomorph
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.