Rewards will be inaccurate due to division before multiplication in calculations.
When calculating costInEuros
, many multiplications and divisions are done without order:
This is problematic as it will result in the value of costInEuros
being rounded down, which could affect the value of _portion
:
Since _portion
is the value used to allocate rewards this will result in inaccurate allocations and stakers receiving bigger allocations which means the protocol is losing money everytime the distributeAssets()
function is called.
Inaccurate allocation of rewards to stakers and loss of money to the protocol.
Manual review.
Ensure multiplication is done first before any sort of division:
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.