The FjordPoints
contract does not take into account how long a user has been in the staking contract when calculating points with distributePoints
. Therefore, we can stake for the entire duration within the EPOCH_DURATION
or before the end of the epoch, and nothing will change in terms of point earning.
This structure goes against the basic principles of staking and does not incentivize rewarding those who have been staking for a long time in the staking contract. Instead of staking basically, it just requires us to call the stake before the end of the epoch.
The following Proof of Concept demonstrates that a user staking on the last day of the epoch has pendingPoints
that should not normally be present:
Users do not actually need to stay in the staking contract to access their points.
Foundry
Design the FjordPoints contract to incentivize users to stake throughout the epoch.
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.