Trait orml_xcm_support::OnDepositFail
source · 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§
sourcefn on_deposit_currency_fail(
err: DispatchError,
currency_id: CurrencyId,
who: &AccountId,
amount: Balance
) -> Result
fn on_deposit_currency_fail(
err: DispatchError,
currency_id: CurrencyId,
who: &AccountId,
amount: Balance
) -> Result
Called on deposit errors with a specific currency_id
.
Provided Methods§
sourcefn on_deposit_unknown_asset_fail(
err: DispatchError,
_asset: &MultiAsset,
_location: &MultiLocation
) -> Result
fn on_deposit_unknown_asset_fail(
err: DispatchError,
_asset: &MultiAsset,
_location: &MultiLocation
) -> Result
Called on unknown asset deposit errors.