Protocol allows users to stake and immediately unstake if it is done in the same epoch.
Unstake function:
However this functionality is not implemented in unstakeAll
function which is expected to do the same thing as unstake
function but for every epoch.
if (dr.epoch == 0 || currentEpoch - epoch <= lockCycle) continue;
It does not check if user's stake and unstake is in the same epoch.
unstakeAll
does not work as intended. Due to this missing functionality user will be required to stake for lockCycle
locking his funds for this period.
In unstakeAll
check if user's unstake is being made in the same epoch, the same way as it is implemented in unstake
function.
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.