mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
- Fixed redundant assignment on StableDebtToken.
This commit is contained in:
parent
5d25b362ca
commit
0d7be4e7df
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user