3.0.1. Inconsistency between calculation of borrow index on _updateIndexes()
and on getNormalizedDebt()
#754
Labels
_updateIndexes()
and on getNormalizedDebt()
#754
_updateIndexes()
only updates thereserve.variableBorrowIndex
wheneverreserveCache.currScaledVariableDebt != 0
. Even if this is expected behavior, it creates an inconsistency with the calculation ongetNormalizedDebt()
, specifically in the case when the scaled variable borrow supply is 0, but the variable borrow rate is > 0, caused by a base variable borrow rate > 0The text was updated successfully, but these errors were encountered: