The unstakeAll
function skips deposits from the current epoch instead of unstaking them. Though it is possible to use another function to unstake such deposits some users can be faced with unexpected asset locking.
Users can expect that the unstakeAll
function will unstake even tokens which were deposited in the current epoch but the function just skip these deposits:
This way such deposits can accidentally stay locked in the contract until lockCycle
is passed.
Unexpected behavior, unexpected temporary asset locking
Manual Review
Consider unstaking deposits from currentEpoch
.
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.