User will be penalized and incur loss of rewards.
PoC:
Imagine scenario where user staked and waited for full lockCycle to be over so he can unstake and claim his rewards. The issue arise when he unstake even thou he waited for full lockCycle (which is 6 weeks) if he want to claim his rewards in the same epoch. In order to do that he will be penalized otherwise he must wait another 3 cycles. (In other words he need to wait minimum 9 weeks in order to get his rewards).
Type following test in unstake.t.sol to prove this:
The test will pass and this would prove that user could not claim their rewards in the same epoch when they unstaked otherwise they must agree to be penalized in order to get their rewards in the same epoch which will incur in lost of potential rewards for user and dissatisfaction with the protocol.
The same scenario can apply even if used don't unstake their tokens but want to claim rewards after lockCycle period is over.
User will be penalized and incur loss of rewards.
Manual Review
Make sure only users who want to claim rewards before the lockCycle period is over must wait for claimCycle to pass in order to not be penalized.
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.