Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset hubs - Add all assets in pool with native to XcmPaymentApi #523

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

franciscoaguirre
Copy link
Contributor

The XcmPaymentApi has two functions, query_acceptable_payment_assets and query_weight_to_asset_fee, which allow clients to know which assets can be used to pay for fees.

On the asset hubs fees can be paid both with the native asset (DOT, KSM) and with any asset in a liquidity pool with the native asset. However, these functions were only returning the native asset.

This PR adds all other assets that can be used for fee payment to this API.

@franciscoaguirre franciscoaguirre changed the title Add all assets in pool with native to XcmPaymentApi Asset hubs - Add all assets in pool with native to XcmPaymentApi Jan 2, 2025
Copy link
Contributor

@acatangiu acatangiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add entry to Changelog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants