Function replace::pallet::dispatchables::accept_replace
source · 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 vaultold_vault
- id of the old vault that we are (possibly partially) replacingcollateral
- the collateral for replacementbtc_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
.