The deposit function calculates shares before updating funding, so a user can deposit and redeem in the same block to capture a share of the funding payment that should belong to existing depositors. This allows immediate profit at the expense of the vault.
The recoverERC721 function in UniV3LiquidityAMO transfers ERC721 tokens to the RdpxV2Core contract, which has no way to transfer or approve them, so the tokens become permanently locked. An admin using this function would cause an irrecoverable loss of the NFTs.
The PerpetualAtlanticVaultLP contract's subtractLoss function requires the actual collateral token balance to exactly equal the tracked total collateral minus the loss. An attacker can send a tiny amount of collateral tokens directly to the contract, causing this equality check to fail and making the settle function revert, which stops the protocol.
The bonding discount for WETH collateral is paid in rDPX, but the contract still deducts a fixed WETH amount from its reserves for each mint, so repeated discounted bonds drain the WETH reserves to zero and block future minting.
The vault's redeem function calculates the amount of rdpx returned using the proportion of rdpx collateral to total shares, not the current rdpx price. An attacker could deposit WETH and immediately redeem to obtain rdpx at a stale price, potentially profiting from arbitrage at the expense of other depositors and the AMM.
The settlement function only burns an option when it is in-the-money, so out-of-money put options tied to bonds that have already been redeemed are never retired. As a result, the core contract keeps paying premiums to vault liquidity providers and their collateral stays locked indefinitely.
The reLP function computed the minimum output amount for a token swap using an incorrect formula that multiplied the tokenB amount by tokenA's price instead of dividing. This could invalidate slippage protection, allowing the swap to execute at a worse rate than intended.
The _curveSwap function uses the wrong price oracle when calculating the minimum output amount for slippage protection. This causes the slippage tolerance to be ineffective, allowing users to receive significantly less than expected during swaps.
The reLP function calls Uniswap's addLiquidity with zero minimum amounts, so the contract accepts any amount of tokens when providing liquidity. An attacker could exploit this to cause the contract to receive fewer LP tokens than fair market value.
The RdpxDecayingBonds contract stores a bond owner in a mapping that is set only at mint and never updated on token transfers. An attacker could transfer a bond token, leaving the stored owner stale, which may mislead integrations and cause loss of funds.
The bond() function allows users to indirectly trigger reLP(), which performs UniswapV2 liquidity removal and swaps. An attacker can sandwich this by manipulating the pool price before and after the call, profiting at the expense of the protocol.
The first depositor can manipulate the LP token price per share by making a small deposit and then waiting for the vault to receive a large amount of RDPX tokens, causing later depositors to receive fewer shares and lose part of their funds. The attacker can then redeem their shares for more assets than they deposited.
The bondWithDelegate function allows users to use decaying bonds, which lack the usual discount, causing the delegatee to pay more ETH and receive fewer bond tokens than with non-decaying bonds. An attacker could front-run by withdrawing delegated assets before such a request, causing the delegatee to incur a loss.
The bond premium calculation uses the time remaining until the next funding payment, so a user can time their bond to just after a funding update and pay a much lower premium for the same bond amount and price. This lets users avoid paying the higher premium that would apply earlier in the funding period.
The VaultLP contract prevents share redemption when the calculated WETH withdrawal amount is zero, even if the user is entitled to RDPX compensation. An attacker could not directly exploit this, but depositors could lose their entire WETH deposit and receive no RDPX if the vault's WETH collateral is fully replaced by RDPX after options settlement.
The bond function calculates the cost of a bond using a discount that depends on the fluctuating rDPX reserve, but the user cannot specify a maximum amount they are willing to pay. An attacker could manipulate the reserve or simply exploit normal fluctuations to make a bonder pay more WETH or rDPX than expected.
The sync function in RdpxV2Core.sol is not called after certain token transfers from the AMO contracts, so the contract's internal balance records become stale. This can cause underflow errors or incorrect reserve calculations in functions that rely on those balances.
The ReLP contract calculates the amount of WETH to swap to RDPX inaccurately, which can leave dust WETH stuck in the contract and reduce the total value of the liquidity position after each reLP operation. An attacker could repeatedly trigger reLP to grief the contract, causing ongoing token loss.
The redeem function in the RdpxV2Core contract lacks a pause check, so users can still redeem matured bonds even when the contract is paused. An attacker could bypass the admin's emergency pause and continue redeeming tokens during a hack or maintenance.
The code calls the ERC20 approve function but ignores its boolean return value, so a failed approval may go unnoticed. An attacker could potentially cause operations to proceed without the intended approval, though the judge notes the transaction would usually revert later.
The contract used block.timestamp as the swap deadline, which does not enforce immediate execution but allows a malicious miner to delay the transaction until it becomes profitable to extract MEV. An attacker could hold the transaction to cause maximum slippage or trigger liquidations.
The code calls transfer and transferFrom on tokens cast to IERC20 without checking return values, which can revert or silently fail for non-standard tokens like USDT. An attacker could potentially break accounting if such a token is used, though the judge notes lower likelihood on Arbitrum.
The withdraw function fails to decrease the totalWethDelegated state variable, allowing an attacker to inflate it by depositing and then withdrawing WETH. This causes the sync function to under-report WETH reserves, so the admin's lowerDepeg call reverts with an underflow, preventing peg restoration.
The ReLPContract calculated how many LP tokens to remove from the UniswapV2 pool by treating the pool's entire reserves as if the protocol owned them, rather than using the protocol's actual LP balance. When the protocol held only a minority of the pool, the computed amount exceeded its balance and the bond transaction reverted, causing a denial of service.
When putOptionsRequired is true, bond operations revert for about 14 minutes before each funding epoch because the option pricing library truncates time-to-expiry to zero days, causing a division by zero in the Black-Scholes calculation. An attacker could not exploit this directly, but it causes a denial of service for legitimate bond users during that window.
Liquidity providers in the PerpetualAtlanticVaultLP can anticipate when put options will be settled and withdraw their capital beforehand to avoid losses, forcing remaining providers to absorb more losses. This can also drain all available collateral, temporarily preventing new bonds from being purchased.
The strike price for rDPX put options was calculated using a rounding function with a minimum precision of 1e6, which could round a 25% out-of-the-money strike up to the current spot price, making it in-the-money. This would cause the protocol to overpay for option premiums and break the intended downside protection.
DO
Dopex
High
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.