Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

dai-plugin-migrations-v0.2.0

Compare
Choose a tag to compare
@ethanbennett ethanbennett released this 13 Nov 23:59
· 1148 commits to dev since this release

Adds support for CDP migrations with new debt as the fee payment method:

migration.execute(cdpId, 'DEBT', maxPayAmount, minRatio)

  • Max pay amount is the maximum amount of Dai debt to use as payment, since the contract buys MKR on Oasis (number)
  • Minimum ratio is the lowest possible collateralization ratio to allow the CDP to hit when drawing new debt to pay the fee (number, e.g. 180)
  • Returns new MCD CDP ID