Skip to content

Code4rena

Predy

Every publicly disclosed report for Predy and what kind of bugs they were.

disclosed reports
12
most reported class
Business logic
bug classes found
3
first disclosure
2024
Find Predy on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Predy chose to make public.

Audit finding

Liquidity manipulation is possible when trading

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.

Predy

Medium
Smart contracts

Incorrect price for negative ticks due to lack of rounding down

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.

Predy

Medium
Business logic

One pair can steal another pair’s Uniswap liquidity during reallocate() call if both pairs operate on the same Uniswap pool and both have the same upper and lower tick during reallocation

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.

Predy

High
Audit finding

Reallocation depends on the slot0 price, which can be manipulated

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.

Predy

High
Audit finding

PriceFeed does not return to the correct price for quote pairs

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.

Predy

Medium
Audit finding

Chainlink’s latestRoundData might return stale or incorrect results

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.

Predy

Medium