From 0d7be4e7dfd98b3493f2b84e4385fde68d320ad3 Mon Sep 17 00:00:00 2001 From: eboado Date: Sun, 1 Nov 2020 09:03:45 +0100 Subject: [PATCH] - Fixed redundant assignment on StableDebtToken. --- contracts/tokenization/StableDebtToken.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/tokenization/StableDebtToken.sol b/contracts/tokenization/StableDebtToken.sol index d7c76857..27e90d41 100644 --- a/contracts/tokenization/StableDebtToken.sol +++ b/contracts/tokenization/StableDebtToken.sol @@ -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);