Function redeem::pallet::dispatchables::liquidation_redeem
source · 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 transactioncollateral_currency
- currency to be receivedwrapped_currency
- currency of the wrapped token to burnamount_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
.