The unstakeAll
function allows users to unstake from all the epochs at once, but it doesn't unstake the currentEpoch.
User can unstake immediately when epoch is same as currentEpoch by using unstake or unstakeVested function.
However, user can't unstake currentEpoch by using unstakeAll function.
https://github.com/Cyfrin/2024-08-fjord/blob/main/src/FjordStaking.sol#L583
User can't unstake currentEpoch by using unstakeAll function.
Manual review
Adding the logic for unstaking currentEpoch in the unstakeAll function is recommended.
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.