pub trait OnDepositFail<CurrencyId, AccountId, Balance> {
    fn on_deposit_currency_fail(
        err: DispatchError,
        currency_id: CurrencyId,
        who: &AccountId,
        amount: Balance
    ) -> Result; fn on_deposit_unknown_asset_fail(
        err: DispatchError,
        _asset: &MultiAsset,
        _location: &MultiLocation
    ) -> Result { ... } }
Expand description

Deposit errors handler for TransactAsset implementations. Default impl for () returns an XcmError::FailedToTransactAsset error.

Required Methods§

Called on deposit errors with a specific currency_id.

Provided Methods§

Called on unknown asset deposit errors.

Implementations on Foreign Types§

Implementors§