Expired oracle versions were committed with the previous valid version's price, so the oracle's validity check (which only treats a zero price as invalid) reported them as valid. The market then kept orders that should have been invalidated, letting users open or close positions when they should not be able to.
The ChainlinkFactory contract's fee calculation ignores the number of requested versions, so it pays keeper fees for both requested and non-requested versions. An attacker could submit non-requested versions to drain the factory's fee balance, though they must include at least one requested version.
The vault checkpoint's asset-to-share conversion incorrectly applies settlement and trade fees, causing a small systematic error that inflates shares for new depositors and dilutes existing depositors. An attacker could repeatedly deposit to slowly drain value from long-term depositors.
After Optimism's Ecotone upgrade, the GasPriceOracle's scalar() function was deprecated and now reverts. The Kept_Optimism contract calls this function in its fee calculation, causing any attempt to settle orders to revert.
Setting a market's weight to zero to remove it from a vault causes the next rebalance to withdraw collateral down to the minimum margin, leaving the vault's position at maximum leverage. This exposes the vault to liquidation and can temporarily brick the vault if collateral falls below the margin requirement.
The vault's global settlement fee calculation subtracts the full settlement fee for both deposits and redeems, while local calculations subtract only a proportional share. This causes local shares and assets to exceed global ones, leading to underflows that prevent users from redeeming or claiming funds.
Empty orders in the Perennial V2 market do not request an oracle version, so during settlement they use an invalid oracle version with price zero. This causes fees and funding to be calculated as zero for any period without non-empty orders, leading to a loss of funds for makers.
The adiabatic fee mechanism in Perennial v2.3 incorrectly distributes fee exposure among makers based on position size rather than individual exposure, causing individual makers to gain or lose funds from price movements even when no long or short positions are open. An attacker could exploit this to cause other makers to lose up to several percent of their notional value.
The strategy library loaded the per-account pending order instead of the market-wide pending order when computing the current, minimum and maximum position. This made those position values wrong and could cause the rebalance logic to compute incorrect targets in rare edge cases.
The market update function reverts if an account is below margin requirement, even when the update does not change position or collateral. This causes denial of service for oracle keepers trying to settle accounts and for vault functions that rely on this update to settle positions.
A liquidator could set a referrer for a user during liquidation, and because the referrer is carried over to future order versions, the user could never change it. This prevented the user from setting their own referrer later.
During settlement, liquidation and referral fees are credited to the account's local storage, but if the liquidator or referrer is the same as the account being settled, the in-memory copy of the account's local data overwrites those credits, causing the fees to be lost. An attacker could self-liquidate or self-refer and lose the fees, which remain stuck in the contract.
A double subtraction of the claimed amount in the vault's market position allocation calculation causes the calculated assets to be lower than the minimum required, leading to a revert when users try to claim redeemed assets. This can temporarily or permanently lock user funds if a market's skew prevents further redemptions.
PV
Perennial V2 Update #2
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.