mistswapdex / mistswap-analytics

Analytics for the MistSwap protocol
https://analytics.mistswap.fi
1 stars 7 forks source link

On token page, add the following token information below Information #28

Open kasumi-1 opened 2 years ago

kasumi-1 commented 2 years ago

Creation date

Total supply

Marketcap

kasumi-1 commented 2 years ago

$300 MIST bounty (check #bounties in https://discord.gg/mistswapdex) - please write CLAIM here and submit PR within 3 days of claiming - if task is not completed within 3 days of claiming another user may claim to finish.

mainnet-pat commented 2 years ago

To find out the creation date, the blockchain scan shall be performed towards the contract creation block. Shall it be done in every user's browser and cached for them locally? Shall it be done once in subgraph and stored for everyone to access?

mainnet-pat commented 2 years ago

I guess the latter will not work. Subgraph can not execute arbitrary ethereum calls, only contract calls at current indexing height.

mainnet-pat commented 2 years ago

Can still easily add Total supply and Marketcap

mainnet-pat commented 2 years ago

token total supply is not tracked on the subgraph. It can be queried from the network though.

kasumi-1 commented 2 years ago

Yeah query from network works