Users may experience continuous small losses due to division before multiplication precision loss in distributePoints
.
The FjordPoints.distributePoints
function calculates the points for a staker by first multiplying pointsPerEpoch
by PRECISION_18
, then dividing by totalStaked
, and then multiplying by weeksPending
. If pointsPerEpoch
is small enough and totalStaked
is large enough, the division may result in losses in points distribution.
Stakers may not receive expected points due to precision loss.
Foundry
Update the calculation so that multiplications are done first and divisions last;
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.