In the getUserVaultMeowllateralInEuros
function, there is a calculation error that causes incorrect output. The current implementation results in significantly inflated values due to incorrect handling of the EXTRA_DECIMALS
constant.
Incorrect calculations of collateral values in euros can lead to incorrect financial data being displayed or used within the smart contract, which can undermine the integrity of the system and lead to potential financial discrepancies.
Manual Review
To address this issue, correct the calculation of collateralAns
by ensuring the proper handling of the EXTRA_DECIMALS
constant.
Here is the corrected version of the getUserVaultMeowllateralInEuros
function:
}
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.