The Trade contract uses the Uniswap spot price (slot0) without any manipulation checks or TWAP, so an attacker can flash-loan to move the pool price and cause a victim's trade to execute at an inaccurate rate, potentially losing funds.
The liquidation function only checks for negative remaining margin when the position is fully closed, so a liquidator can close almost all of a position and leave a tiny remainder, avoiding the requirement to compensate for the loss. This allows the liquidator to profit while the protocol absorbs the loss.
The function that calculates the time-weighted average price tick from Uniswap observations did not round down when the tick cumulative difference was negative, causing the returned tick to be larger than it should be. This could lead to incorrect prices being used in the protocol.
During reallocation, if the swap produces more quote tokens than required, the excess is sent to the Market contract instead of the reallocator, causing a loss of funds for the reallocator.
The Predy protocol's reallocate() function does not verify that the Uniswap liquidity in a given tick range belongs exclusively to the calling pair. If two pairs share the same Uniswap pool and tick range, reallocating one pair can steal liquidity from the other, breaking internal accounting and preventing users from closing or liquidating positions.
The reallocate function reads the Uniswap V3 slot0 spot price and tick to decide whether to rebalance the LP position. An attacker can manipulate the spot price momentarily to force a reallocation to an extreme tick range, causing a loss of yield for the protocol.
A vault owner can set the vault's recipient to an address blacklisted by the quote token (e.g., USDC), causing the transfer of remaining positive margin during liquidation to revert. This prevents the liquidation from succeeding, allowing the owner to avoid liquidation of an unhealthy position.
The PriceFeed contract cannot represent a negative decimal difference between the Pyth and Chainlink oracles, so for certain quote pairs the computed square root price is incorrect. This makes parts of the system unusable for those pairs and could cause further problems if a PriceFeed is added later.
During liquidation, if the vault has negative margin (bad debt), the code attempts to transfer the bad debt amount from the Market contract instead of the liquidator. This makes liquidation impossible for such vaults, and the bad debt continues to grow due to accumulating lending fees.
The updateIRMParams function updates the interest rate model parameters without first applying accrued interest, so the new parameters are used to calculate interest for the period since the last update. This leads to incorrect interest rates and total protocol fees for subsequent trades.
The PriceFeed contract uses Chainlink's latestRoundData() without checking whether the returned price is stale. An attacker could exploit a stale price to cause incorrect valuations, leading to liquidations or trades at wrong prices.
A malicious user can create many tiny positions so that removing a position requires looping over a large array, consuming excessive gas and potentially reverting liquidations. This could prevent other users from liquidating the attacker's positions.
PR
Predy
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.