Incorrect implementation of getNormalizedIncode() and getNormalizedDebt() in lending pool
getNormalizedIncode() and getNormalizedDebt() are used for get real time liquidity index and debt index of reserve. However these two are implemented incorrectly in lending pool, which return last updated index instead of accumulating time colapsed since last update.
These two functions are referenced in multi places in protocol to get real time liquidity or debt index in reserve such as RRoken.sol, DebtToken.sol or StabilityPool.sol.
These will break protocol functionality in many places, such as in StabilityPool:liquidateBorrower() will results less debt than users accumulated up to now.
e.g: In Rtoken::_update() function, scaledAmount will be a little larger when mint(), burn() or transfer()
manual
consider changing to something like this:
similar should be implemented to getNormalizedDebt()
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.