You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes people added their project tokens to this file think it is a contract/erc20 address book. Or adding it here, would to the added to the getting priced. Both these assumptions are wrong.
Purpose of this file, though it acts a bit like address book is to, give a list of quote tokens for a given chain. This is used for computing the value of tokens in uniswap v2 like pools for which we dont have prices support in our api, that is the main reason for this file, and the reason why I try to keep the list as small as possible.
If a token that is part of your tvl is missing price, we can either add mapping to coingecko (if present) in tokenMappings.json file like 9a2152c
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Sometimes people added their project tokens to this file think it is a contract/erc20 address book. Or adding it here, would to the added to the getting priced. Both these assumptions are wrong.
Purpose of this file, though it acts a bit like address book is to, give a list of quote tokens for a given chain. This is used for computing the value of tokens in uniswap v2 like pools for which we dont have prices support in our api, that is the main reason for this file, and the reason why I try to keep the list as small as possible.
If a token that is part of your tvl is missing price, we can either add mapping to coingecko (if present) in tokenMappings.json file like 9a2152c
or we will try to add an coins adapter which will periodically pull this token price and add it to our db: https://github.com/DefiLlama/defillama-server/blob/master/coins/src/adapters/index.ts
Beta Was this translation helpful? Give feedback.
All reactions