Spacewalk needs to map the specific types of our CurrencyId enum to the respective asset prices stored in the DIA pallet. These prices are identified by a 'blockchain' + 'symbol' pair. Currently, we are using hard-coded mappings, see eg here but we want to use the metadata of the asset registry instead so that we don't need to touch that mapping again.
TODO
Replace the hard-coded mapping with logic that checks the metadata of the asset registry.
Context
Spacewalk needs to map the specific types of our
CurrencyId
enum to the respective asset prices stored in the DIA pallet. These prices are identified by a 'blockchain' + 'symbol' pair. Currently, we are using hard-coded mappings, see eg here but we want to use the metadata of the asset registry instead so that we don't need to touch that mapping again.TODO
Replace the hard-coded mapping with logic that checks the metadata of the asset registry.