pub fn accept_replace<T: Config>(
    currency_pair: DefaultVaultCurrencyPair<T>,
    old_vault: VaultId<<T as Config>::AccountId, CurrencyId<T>>,
    amount_btc: <T as Config>::Balance,
    collateral: <T as Config>::Balance,
    btc_address: BtcAddress
)
Expand description

Accept request of vault replacement

Arguments

  • origin - the initiator of the transaction: the new vault
  • old_vault - id of the old vault that we are (possibly partially) replacing
  • collateral - the collateral for replacement
  • btc_address - the address that old-vault should transfer the btc to

Warning: Doc-Only

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