mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
Fixed a bug
This commit is contained in:
parent
c1e16c07d3
commit
cc2fd9baa0
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user