Merge branch 'fix/108-redundancy-stable-debt' into 'master'

- Fixed redundant assignment on StableDebtToken.

Closes #108

See merge request aave-tech/protocol-v2!116
This commit is contained in:
Ernesto Boado 2020-11-02 10:26:11 +00:00
commit e5597b6156

View File

@ -172,7 +172,7 @@ contract StableDebtToken is IStableDebtToken, DebtTokenBase {
//might actually try to repay more than the available debt supply.
//in this case we simply set the total supply and the avg stable rate to 0
if (previousSupply <= amount) {
newStableRate = _avgStableRate = 0;
_avgStableRate = 0;
_totalSupply = 0;
} else {
uint256 nextSupply = _totalSupply = previousSupply.sub(amount);