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.