The getTotalMeowllateralInAave function assumes that the value returned by Aave, totalCollateralBase is in the same units as the collateral token. This assumption might not always hold true, depending on the Aave implementation, and can lead to incorrect calculations of the total collateral.
The getTotalMeowllateralInAave function retrieves the total collateral from Aave and converts it to the same units as the collateral token using a price feed.
The function assumes that totalCollateralBase is in the same units as the collateral token. If Aave returns values in a different scale (e.g., 6 decimals instead of 18 decimals), the calculations will be incorrect.
If the units of totalCollateralBase are not consistent with the collateral token, the total collateral value will be miscalculated leading to financial discrepancies, affecting the fairness and accuracy of collateral management. Users might lose trust in the contract's reliability and accuracy if collateral values are incorrectly calculated.
Manual Review
Verify the units of totalCollateralBase and adjust them to match the units of the collateral token if necessary.
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.