The function _getWeights
inappropriately orders arithmetic operations when calculating locals.newWeights[locals.i]
. The current implementation may result in precision loss due to rounding during integer division, impacting the accuracy of the calculated weights.
Incorrect Weight Calculation: The precision loss can result in inaccurate weights.
Reorder Arithmetic Operations:
Replace:
With:
## [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.