mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
Added require statement for 20 DAI min
This commit is contained in:
parent
5dc98ffa03
commit
92017c0c0c
|
@ -511,6 +511,7 @@ contract MigrateHelper is MCDResolver {
|
|||
maxConvert = sub(wdiv(saiBal, _wadTotal), 100);
|
||||
}
|
||||
|
||||
require(_wad > 2*10**18, "Min 20 Dai required to migrate."); // Check Thrilok - is the 20dai value correct?
|
||||
// ink according to maxConvert ratio.
|
||||
_ink = wmul(tub.ink(cup), maxConvert);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user