duality-labs / hapi-indexer

A Node.js based indexer for the Duality Cosmos chain
1 stars 0 forks source link

feat: sort token pairs list by decreasing TVL #40

Closed dib542 closed 1 year ago

dib542 commented 1 year ago

This PR adds searching of NPM chain-registry package data for native and IBC asset data and related coingecko_id information which is then used to query CoinGecko with environment variable keys:

If the price IDs and prices exist: these values are cached appropriately (dependent on type of CoinGecko API key) and the token pairs list is sorted by the total value locked in approximate USD.

Also env vars: