super.totalSupply() function returns scaledSupply, the external totalSupply function is supposed to return actual amount by multiplying this scaledSupply to usageIndex but instead it is dividing by it, reducing the value further.
This totalSupply is used inside the LendingPool when borrowing or repaying to calculate reserve.totalUsage. This totalUsage is used to calculate liquidity and utitlizationRate in ReserveLibrary, and these are critical variables so wrong value of totalSupply will cause a lot of damage.
Manual Review
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.