This repository has been archived by the owner on Oct 1, 2023. It is now read-only.
0x52 - Null epochs will freeze rollovers #442
Labels
Has Duplicates
A valid issue with 1+ other issues describing the same vulnerability
Medium
A valid Medium severity issue
Reward
A payout will be made for this issue
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Won't Fix
The sponsor confirmed this issue will not be fixed
0x52
medium
Null epochs will freeze rollovers
Summary
When rolling a position it is required that the user didn't payout on the last epoch. The issue with the check is that if a null epoch is triggered then rollovers will break even though the vault didn't make a payout
Vulnerability Detail
Carousel.sol#L401-L406
When minting rollovers the following check is made so that the user won't automatically roll over if they made a payout last epoch. This check however will fail if there is ever a null epoch. Since no payout is made for a null epoch it should continue to rollover but doesn't.
Impact
Rollover will halt after null epoch
Code Snippet
Carousel.sol#L361-L459
Tool used
Manual Review
Recommendation
Change to less than or equal to:
The text was updated successfully, but these errors were encountered: