refactor: fixed natspec comments and removed redunant check in refreshDebt()

This commit is contained in:
emilio 2021-06-13 21:15:06 +02:00
parent dd07e934c2
commit 0965a99d88

View File

@ -408,10 +408,8 @@ library ReserveLogic {
.currTotalStableDebt
.add(stableDebtMinted)
.sub(stableDebtBurned);
if (stableDebtMinted != 0 || stableDebtBurned != 0) {
cache.nextAvgStableBorrowRate = IStableDebtToken(cache.stableDebtTokenAddress)
.getAverageStableRate();
}
} else {
cache.nextPrincipalStableDebt = cache.nextTotalStableDebt = cache
.nextAvgStableBorrowRate = 0;