Open
Description
The current XcmPaymentApi::query_delivery_fees()
strictly returns fee required in native assets.
But the delivery fee can also be paid using assets other than native.
I suggest enhancing the API with an optional asset specifier so that users/dapps can directly query the fee in their desired asset:
- fn query_delivery_fees(destination: VersionedLocation, message: VersionedXcm<()>) -> Result<VersionedAssets, Error>;
+ fn query_delivery_fees(destination: VersionedLocation, message: VersionedXcm<()>, asset: Option<VersionedAssetId>) -> Result<VersionedAssets, Error>;
or to be aligned with XcmPaymentApi::query_weight_to_asset_fee()
- fn query_delivery_fees(destination: VersionedLocation, message: VersionedXcm<()>) -> Result<VersionedAssets, Error>;
+ fn query_delivery_fees(destination: VersionedLocation, message: VersionedXcm<()>, asset: VersionedAssetId) -> Result<u128, Error>;
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status