From cc2fd9baa0f8af1a679b648f076da5c10ca42577 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Mon, 18 Nov 2019 18:38:44 +0530 Subject: [PATCH] Fixed a bug --- contracts/ProxyLogics/MCD/InstaMcdMigrate.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/ProxyLogics/MCD/InstaMcdMigrate.sol b/contracts/ProxyLogics/MCD/InstaMcdMigrate.sol index d7eda39..1d63add 100644 --- a/contracts/ProxyLogics/MCD/InstaMcdMigrate.sol +++ b/contracts/ProxyLogics/MCD/InstaMcdMigrate.sol @@ -504,7 +504,7 @@ contract MigrateHelper is MCDResolver { // set saiBal as wad amount And sub feeAmt(feeAmt > 0, when its debt method). _wad = sub(saiBal, 100000); // set new convert ratio according to sai_join balance. - maxConvert = sub(wdiv(saiBal, sub(_wad, feeAmt)), 100); + maxConvert = sub(wdiv(saiBal, _wadTotal), 100); } // ink according to maxConvert ratio.