The distributeAssets function in LiquidationPool.sol contract has Division before Multiplication vulnerability in it which may lead to the imprecise calculation due to round of decimals as evm can't handle decimal number
The distributeAssets function calculates costInEuros by doing a calculation which involves division and multiplication. The vulnerability arises due to wrong calculation of costInEuros which occurs due to rounding of decimal numbers.
As we can see in the above code snippet we are dividing with assetPriceUsd before multiplying with _hundredPC which may lead to imprecise calculations sometimes.
The impact of the vulnerablity is low as wrong calculation of costInEuros can directly impact the rewards of the stakers
Manual Review
Change the order of operations so that multiplication is performed before 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.