The rollover queue implementation allows a user earlier in the queue to delist after their own rollover is processed, which replaces their queue index with the last user's index, preventing that last user from having their funds rolled over until the next epoch. An attacker could deliberately grief later users by exploiting this ordering.
When a user rolls over their position to the next epoch, the contract mints shares equal to their original deposit but burns all shares from the previous epoch, including any winnings. As a result, the user loses the rewards they earned in the previous epoch.
The deposit queue uses a first-in-last-out stack, so when a relayer processes a batch of deposits, the earliest entries can be skipped and remain stuck if new deposits keep arriving. An attacker could flood the queue with many small deposits to prevent a victim's deposit from ever being processed.
The smart contract does not check the timestamp of the price feed data, so an outdated price could be used. This could cause a depeg event to be triggered incorrectly.
The VaultFactoryV2 contract inherits OpenZeppelin's Ownable, which provides a public transferOwnership function that only the current owner can call. This function was not overridden to enforce the timelock delay, so the owner could transfer ownership instantly, bypassing the intended timelock protection.
The depeg trigger function reverts when the Arbitrum sequencer is down or within its grace period, so if the sequencer goes down before an epoch expires and stays down past expiry, a depeg cannot be triggered. Collateral vault users can then end the epoch without a depeg and claim the premium, while premium vault users lose their payout.
Two functions compared the current block timestamp against the epoch start time with different strictness, so both could run in the same block at the exact start time. A deposit made after the null-epoch trigger in that block was left out of the recorded total, which could skew emission payouts and lock remaining funds.
The Controller contract sends treasury fees to its own immutable treasury address instead of the treasury address stored in each vault. This prevents vaults from having different treasury addresses and makes the vault's setTreasury function ineffective.
When a vault has zero total value locked (TVL) for an epoch that has emissions allocated, the epoch is nullified and the emissions become permanently stuck because no one can withdraw them. An attacker cannot directly exploit this, but the protocol loses the emissions tokens.
The rollover check in Carousel.sol incorrectly requires that a user's entitled shares exceed their assets, which fails when a null epoch occurs because no payout is made. This causes rollovers to halt after a null epoch, leaving users unable to roll over their positions.
The mintRollovers function incorrectly checks queue[index].assets against relayerFee instead of entitledShares, so rollovers are skipped even when the user's entitled shares exceed the relayer fee. This prevents users from rolling over their assets despite having sufficient funds.
The Carousel.mintRollovers function can mint zero shares when a user's deposited assets equal the relayer fee, and if this is the only deposit for an epoch, the vault's total value locked (TVL) remains zero. This causes previewWithdraw to revert due to division by zero, permanently blocking the rollover queue unless the affected user delists their item.
The contract incorrectly updates the ownerToRollOverQueueIndex to the last queue index even when a user already has an existing rollover, causing the notRollingOver check to validate the wrong queue item. This allows a depositor to withdraw funds that should have been locked for the rollover.
The changeTreasury function in VaultFactoryV2 set the vault treasury to the factory's own treasury variable instead of the address passed in by the caller. This could make the controller's triggerDepeg call fail when sending tokens, so a valid depeg event might not be paid out in time.
The deposit fee charged on direct deposits could be avoided by depositing into the queue and then immediately minting the queued deposit in the same transaction. An attacker could thus pay zero fees instead of the required deposit fee, causing a loss of protocol fee revenue.
The deposit queue in Carousel.sol uses ERC1155 _mint which calls the receiver's acceptance check, allowing a malicious user to make their receiver revert and block all subsequent deposits. Since deposits cannot be cancelled, users whose deposits are blocked lose their funds.
The triggerEndEpoch function could be called even when one of the vaults had no funds, a situation that should be handled by triggerNullEpoch. This could cause funds from the premium vault to be sent to the collateral vault and lost.
A single rollover queue is shared across all epochs, so a user can add many tiny entries that are never removed. This makes every round's rollover processing expensive and unprofitable for relayers, potentially stopping rollovers permanently.
Y2
Y2K
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.