interlay / interbtc-squid

Subquid GraphQL schema and indexer for the Interlay and Kintsugi networks
Apache License 2.0
4 stars 7 forks source link

Remove static reference to asset id of USDT #97

Closed bvotteler closed 1 year ago

bvotteler commented 1 year ago

... and replace it with a lookup instead.

While foreign asset id 1 is USDT on interlay and kintsugi, it may have another id on testnets, depending on how they will be initialized/set up.

Instead of having a magic identifier, it is better to lookup and cache the correct on from the asset registry.

See also this comment for reference.

bvotteler commented 1 year ago

Closing this issue: PR #100 removed the hardcoded asset id.