For the design, the penalty rewards will be distributed to the FJO stakers who locked at least six weeks, but actually, the stakers who locked less than six weeks can also get some share of the penalty rewards.
The scenario can occur in the situations below.
Steps:
1: Staker1 and staker2 stake 1 ether fjord token in epoch 1
2: RewardAdmin Add 1 ether reward and enter epoch 2
3: Staker1 claimReward ealry in epoch3
4: Staker2 claimReward ealry in epoch4
staker2 rewards calcuation: 2 ether rewards/ 2 ether staked = 1 ether rewards, claim early only get 0.5 ether fjo token
staker1 rewards calcuation:
like staker2 also have 1 ether rewards.
As staker2 claim early, 0.5 ether fjo token as pending rewards. For staker2, the new pending rewards will give him is 0.25 ether, another the same was given staker2
Now, the staker1 claim early in epoch4, actual rewards is (1+ 0.25)/2 = 0.625
POC
Users who stake less than six weeks can still get a share of the penalty rewards.
All the penalty rewards are not all distributed to the stakers who stake for at least six weeks.
Manual
1. PendingRewards balance calculation as below, so the penalty rewards will be part of the pending rewards, which will be distributed to the stakers still staked in the following epochs. And more will distribute the staker who stake at least six weeks. If logic dealing with stakers who stake less than six weeks will make the logic more complex.
2. It seems more rational to change the intro: the penalty rewards will contribute to the protocol's pending rewards, which will distribute the rewards to the stakers who still staked in the following eopchs. Stakers who stake at least six weeks not only get their whole rewards, but also get the penalty rewards with no discount.
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.