The getTotalMeowllateralInAave
function in KittyVault.sol
calculates the total collateral deposited in Aave and the collateral earned by interest. The current implementation incorrectly multiplies collateralToUsdPrice
by EXTRA_DECIMALS
when converting the collateral value using the USD price feed, resulting in an incorrect calculation.
The incorrect calculation leads to the result being off by a factor of 10^10, which means the total collateral value is not accurately represented. This can cause significant issues in collateral management, since the return value of this function is used to calculate the total collateral of the vault in KittyVault::getTotalMeowllateral
.
Manual review.
Modify the calculation to remove the * EXTRA_DECIMALS
multiplication. The corrected line should be:
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.