Performing multiplication before division is generally better to avoid loss of precision because Solidity integer division might truncate.
In the LiquidationPool::position() function, while computing the Euros, the priority for multiplication before division in the logic is not enforced.
This could lead to loss in precision.
In the below call, the position.TST / getTstTotal() happening before multiplying with balanceOf Euros will result in truncated result.
Loss of fractional position
Manual review
Specify the order of execution of mathematical operators using braces.
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.