pendulum-chain / pendulum

GNU General Public License v3.0
43 stars 14 forks source link

Use asset registry metadata for implementation of `DiaOracleKeyConvertor` #469

Closed ebma closed 4 months ago

ebma commented 4 months ago

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.