393 use fee per second from asset metadata in xcm config#432
Conversation
… to blocks, generate weights
…extends-our-current-treasury-pallet-with-buyout-feature
…g' of github.com:pendulum-chain/pendulum into 393-use-fee_per_second-from-asset-metadata-in-xcm-config
TorstenStueber
left a comment
There was a problem hiding this comment.
Overall a good change but I think we should simplify some of the types – I made some proposals in my comments.
… conversion before fetching metadata
|
Last commit updated and simplified the implementation now. I will leave a brief description since the conversation is now too long. We now don't modify at all the location before trying to convert nor we convert while getting the fee per second. |
|
The Foucoco |
TorstenStueber
left a comment
There was a problem hiding this comment.
This turned out really nice now. Great job!
|
Let's merge and roll it out on Foucoco today? |
This PR adds changes that were reverted before. The original PR is #410.
We only want to merge this after the dependency upgrade to v0.9.42 is merged and released.
TODO
MultiLocation<>CurrencyId. Currently, we are still using the hard-coded logic that manually maps these two but we also want to use the asset registry for this so no further runtime upgrades are needed for adding assets. Thus, we should change the conversion function similar to what is done here.Closes #393.