paritytech / polkadot-sdk

The Parity Polkadot Blockchain SDK
https://polkadot.network/
1.8k stars 652 forks source link

Add assets in pool with native to query_acceptable_payment_assets's return #5599

Open franciscoaguirre opened 3 weeks ago

franciscoaguirre commented 3 weeks ago

XcmPaymentApi::query_acceptable_payment_assets is an API that returns the assets that can be used to pay fees on the runtime where it's called. For relays and most system chains this was configured only as the native asset: ROC and WND. However, the asset hubs have the asset conversion pallet, which allows fees to be paid in any asset in a pool with the native one. This PR adds the list of assets in a pool with the native one to the return value of this API for the asset hubs.