Audit of claimPeriodActive Function Logic and Potential Vulnerability
The claimPeriodActive function may incorrectly return false in certain situations, even when the claim period is actually active. This is due to the function's over-reliance on the return value of stakeController.getUnbondingEndsAt, without considering all possible scenarios.
This issue could prevent operators from claiming their rewards when they should be able to do so.
vscode
Modify the claimPeriodActive function to not solely rely on the return value of getUnbondingEndsAt, but also consider other factors to determine the actual state of the claim period. For example, an additional check could be added to verify if there are unclaimed rewards, or a new state variable could be introduced to track the active status of the claim period.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.