The distributeAssets()
can suffer some minor precision loss when the number assets( _portion
) is low.
When calculating the costInEuros, the calculation can be subject to precision loss if the _portion is low and priceEurUsd is high." and the numerator ends up being lower than 120_000 (the current _collateralRate ).
https://github.com/Cyfrin/2023-12-the-standard/blob/91132936cb09ef9bf82f38ab1106346e2ad60f91/contracts/LiquidationPool.sol#L220-L221
The protocol absorbs minor loses EUROs.
Manual review
Foundry
If the costInEuros == 0
make sure that the staker cannot get assets for free.
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.