Division before multipliction can result in rounding down errors, hence to minimize any rounding errors we should to perform multiplication before division
In function distributeAssets() when calculating costEuros division is performed before multiplication
uint256 costInEuros = _portion * 10 ** (18 - asset.token.dec) * uint256(assetPriceUsd) / uint256(priceEurUsd) * _hundredPC / _collateralRate;
Precision loss may result in a lost of funds for the protocol/user
Manual
The multiplication should occur 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.