paritytech / polkadot-sdk

The Parity Polkadot Blockchain SDK
https://polkadot.com/
1.89k stars 696 forks source link

Update benchmark for `exchange_asset` in asset hubs #6207

Open franciscoaguirre opened 3 weeks ago

franciscoaguirre commented 3 weeks ago

Right now, both asset-hub-westend and asset-hub-rococo have the weight of the ExchangeAsset instruction set to Weight::MAX. This was done because there wasn't an AssetExchanger before that could actually execute the instruction successfully. However, now we have SingleAssetAssetExchanger already configured in both runtimes. We should benchmark the instruction now and put the correct weight to allow it to be used.