Incorrect calculation of collateral value.
Collateral value is calculated as below:
Unfortunately, if collateral has more/less decimals than 18, the calculation would be wrong.
(1) Decimals more than 18
Decimals: 30
Price: 1e8
Amount: 1e30
Expected Value: 1e18
Calculated Value: 1e30
(2) Decimals less than 18
Decimals: 6
Price: 1e8
Amount: 1e6
Expected Value: 1e18
Calculated Value: 1e6
Collateral value is not calculated correctly.
Manual Review
PRECISION should be collateral's decimals.
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.