pub fn liquidation_redeem<T: Config>(
    currencies: DefaultVaultCurrencyPair<T>,
    amount_wrapped: <T as Config>::Balance
)
Expand description

When a Vault is liquidated, its collateral is slashed up to 150% of the liquidated BTC value. To re-establish the physical 1:1 peg, the bridge allows users to burn issued tokens in return for collateral at a premium rate.

Arguments

  • origin - sender of the transaction
  • collateral_currency - currency to be received
  • wrapped_currency - currency of the wrapped token to burn
  • amount_wrapped - amount of issued tokens to burn

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::liquidation_redeem.