Wrong parameter in event PointsDistributed() could cause problems with offchain applications/Dapps, and mislead the end user.
In FjordPoints.sol the event is defined as follow :
https://github.com/Cyfrin/2024-08-fjord/blob/main/src/FjordPoints.sol#L101-L106
But it is used with the wrong parameter in distributePoints()::FjordPoints.sol :
https://github.com/Cyfrin/2024-08-fjord/blob/main/src/FjordPoints.sol#L229-L248
It should be totalPoints and not pointsPerEpoch :
Offchain application and Dapps relie on informations given by events, this could lead to several problems in applications, misleading the end user.
Github, VisualCode.
Replace pointsPerEpoch with totalPoints.
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.