The getNormalizedIncome
and getNormalizedDebt
functions in ReserveLibrary
only calculate the index changes without multiplying by the total amounts (totalLiquidity and totalUsage), leading to incorrect normalized values for deposits and debts.
Incorrect calculation of normalized values for deposits and debts
Potential miscalculation of interest rates
Disruption of protocol's economic model
Risk of protocol insolvency due to incorrect accounting
Manual Review
Multiply the total amounts (totalLiquidity and totalUsage) in the getNormalizedIncome
and getNormalizedDebt
functions.
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.