Payback

Close Acala Dollar Vault

There're two ways to close a Acala Dollar vault

  1. repay the exact amount of Acala Dollar minted to 'close' the vault OR

  2. use available collateral to pay it back, this is useful when you don't have enough Acala Dollar at hand to payback the loan, and the system will automatically swap your collateral for Acala Dollar in AcalaSwap to pay down the vault in a single transaction

Extrinsics

  1. repay the exact amount

honzon.adjustLoan(currency_id, collateral_adjustment, debit_adjustment)

2. use available collateral to pay it back

honzon.closeLoanHasDebitByDex(currency_id, maybe_path)

[honzon Source]

Last updated