FjordPoints#checkDistribution()
modifier never reverts
FjordPoints#checkDistribution()
modifier is using on the following functions for distribution status check.
FjordPoints#setPointsPerEpoch()
FjordPoints#onStaked()
FjordPoints#onUnstaked()
FjordPoints#claimPoints()
FjordPoints#checkDistribution()
modifier
calls FjordPoints#distributePoints()
.
has not any additional revert logic.
FjordPoints#distributePoints()
does not revert even EPOCH_DURATION
is not expired or totalStaked
is zero.
has not any additional revert logic.
Protocol Point's distribution
logic can be executed anytime without any time block such as EPOCH_DURATION
and it will happen protocol's violation.
Bob
calls FjordPoints#claimPoints
multiple time without any waiting to claim his points.
FjordPoints#checkDistribution
modifier does not revert.
So Bob
can claim his points any time without any waiting.
https://github.com/Cyfrin/2024-08-fjord/blob/main/src/FjordPoints.sol#L232-L248
Manual Review
Please update FjordPoints#distributePoints()
as following.
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.