referrerpolicy=no-referrer-when-downgrade
cumulus_primitives_utility

Trait ChargeWeightInFungibles

Source
pub trait ChargeWeightInFungibles<AccountId, Assets: Inspect<AccountId>> {
    // Required method
    fn charge_weight_in_fungibles(
        asset_id: <Assets as Inspect<AccountId>>::AssetId,
        weight: Weight,
    ) -> Result<<Assets as Inspect<AccountId>>::Balance, XcmError>;
}
Expand description

ChargeWeightInFungibles trait, which converts a given amount of weight and an assetId, and it returns the balance amount that should be charged in such assetId for that amount of weight

Required Methods§

Source

fn charge_weight_in_fungibles( asset_id: <Assets as Inspect<AccountId>>::AssetId, weight: Weight, ) -> Result<<Assets as Inspect<AccountId>>::Balance, XcmError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

impl<CurrencyBalance, Runtime, WeightToFee, BalanceConverter, AssetInstance> ChargeWeightInFungibles<<Runtime as Config>::AccountId, Pallet<Runtime, AssetInstance>> for AssetFeeAsExistentialDepositMultiplier<Runtime, WeightToFee, BalanceConverter, AssetInstance>
where Runtime: Config<AssetInstance>, WeightToFee: WeightToFee<Balance = CurrencyBalance>, BalanceConverter: ConversionToAssetBalance<CurrencyBalance, <Runtime as Config<AssetInstance>>::AssetId, <Runtime as Config<AssetInstance>>::Balance>,