Added require statement for 20 DAI min

This commit is contained in:
Thrilok Kumar 2019-11-20 06:48:20 +05:30
parent 5dc98ffa03
commit 92017c0c0c

View File

@ -511,6 +511,7 @@ contract MigrateHelper is MCDResolver {
maxConvert = sub(wdiv(saiBal, _wadTotal), 100); 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 according to maxConvert ratio.
_ink = wmul(tub.ink(cup), maxConvert); _ink = wmul(tub.ink(cup), maxConvert);
} }