Fixed a bug

This commit is contained in:
Thrilok Kumar 2019-11-18 18:38:44 +05:30
parent c1e16c07d3
commit cc2fd9baa0

View File

@ -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.