Create & use endpoint(s) for chains & tokens
Opened this issue · 0 comments
cristinalare commented
values that we need to update & maintain:
payoutTokens
- needs an endpoint
context:
- we currently have 2 arrays for the hardcoded tokens in
/functions/utils.ts
:votingTokens
andpayoutTokens
(which are the equal atm) - we're currently using both: one of them in a file, the other one in another file but this is not needed, we only need to use a single payoutTokens array - we'll have to get that from the indexer probably
CHAINS
- needs an endpoint
- currently we have a hardcoded array in /functions/utils.ts
- chain logos - we need to make sure we add the images here that corresponds to a new chain's logo property
- currently located in /public/logos and used like this CHAINS[chainId]?.logo