There are multiple division-then-multiplication operations in the protocol, which will lead to loss of precision in the calculation results.
In the function DifferenceMomentumUpdateRule.sol#_getWeights, the following code suffers from loss of precision:
This will cause newWeights and normalizationFactor to be smaller than expected.
loss of precision
VScode
Use the correct order of calculations and avoid dividing before multiplying.
## [Low-24] Divide before multiply
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.