On file path: 2024-08-fjord/src/FjordPoints.sol Lines: 242 - 243 The divide-before-multiply issue is being experienced. This primarily impacts calculation precision. While it does not pose a direct security threat such as reentrancy or unauthorized access, it can compromise the accuracy of point distributions.
When you divide in Solidty, the integer division might truncate the result, leading to a loss of precision. Bare in mind that dividing an integer rounds it down.
Here's a couple of impact points:
Loss of Precision: Solidity does not handle floating-point numbers, so dividing integers can lead to truncation and loss of precision. This can affect calculations, especially when dealing with high-precision values.
Miscalculations: In this instance, this can lead to incorrect distribution of points calculations, potentially causing financial discrepancies.
Manual
To ensure precision in calculations, we recommend reordering the operations by multiplying before dividing:
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.