pub trait AssetConverter<AssetId, Balance, ConvertAssetId, ConvertBalance>: MatchesFungibles<AssetId, Balance>where
AssetId: Clone,
Balance: Clone,
ConvertAssetId: MaybeEquivalence<Location, AssetId>,
ConvertBalance: MaybeEquivalence<u128, Balance>,{
// Required method
fn convert_ref(
value: impl Borrow<(AssetId, Balance)>,
) -> Result<Asset, FungiblesAccessError>;
}
Expand description
Converting any [(AssetId, Balance)
] to [Asset
]
Required Methods§
fn convert_ref( value: impl Borrow<(AssetId, Balance)>, ) -> Result<Asset, FungiblesAccessError>
Object Safety§
This trait is not object safe.