open-runtime-module-library icon indicating copy to clipboard operation
open-runtime-module-library copied to clipboard

MultiLocationsFilter to additionally filter by asset

Open sander2 opened this issue 3 years ago • 1 comments

https://github.com/open-web3-stack/open-runtime-module-library/pull/714 introduced a filter for xcm locations to the xtokens pallet. However, it checks only the multilocation in isolation, which means that each destination is either supported for all currencies, or that it's not supported at all. However, some destinations only make sense for certain currencies, e.g. sending the chain's native token to the relay chain probably does not make a lot of sense. So I thought it would make sense to change MultiLocationsFilter to take a tuple of a destination and an asset. Thoughts?

sander2 avatar Apr 04 '22 15:04 sander2

Sounds reasonable. cc @Dengjianping

xlc avatar Apr 04 '22 22:04 xlc