Query editor
/*-- @title: Core - Token info-- @description: Provides the list of tokens for which the price will be retrieved-- @author: Steakhouse Financial-- @notes: N/A-- @ER Model: https://docs.google.com/presentation/d/1JI2b12FBZaV0nInBFB2rbvQiXHBdylDHc1Kq3oJlA8M-- @version:- 1.0 - 2025-02-06 - Initial version- 2.0 - 2025-03-04 - Add Pendle Tokens- 3.0 - 2025-03-15 - Incorporate price_address into final field- 4.0 - 2025-03-24 - Left join on prices table to fetch all tokens.erc20Add regex to exclude tokens with symbols in them- 5.0 - 2025-03-26 - Include MetaMorpho Vault Symbols Tokens Info- 6.0 - 2025-03-27 - Code refactored, extending the list of tokens whether there is price feed or not- Also filtering out scams/shitcoins based on symbol regex- 7.0 - 2025-04-02 - Add back in aero token in filter- 8.0 - 2025-04-09 - Add degen token in filter- 9.0 - 2025-05-02 - single_tokens cte by priority in case we are missing any field- excluding tokens without at least one letter- filter by chain also in cte <erc20_tokens>- set type='stablecoin' for tokens in table erc20_stablecoins- 10.0 - 2025-05-09 - Add ink & worldchain to chains- 11.0 - 2025-05-22 - Using prices.day instead of prices.usd_daily & dex.prices + removed fantom (replaced by sonic)- 12.0 - 2025-06-23 - Remove 'one' from where condition for exclusion- 13.0 - 2025-07-04 - Added katana chain- 14.0 - 2025-07-15 - Added hemi & tac chains- 15.0 - 2025-08-26 - Added unichain & plume chains- 16.0 - 2025-08-28 - Removing moar shitcoins in cte `clean_tokens`- For chains Base & BNB, get tokens only from the 'token_info_inclusions'- 17.0 - 2025-09-09 - Added hyperevm chain- 18.0 - 2025-10-01 - Add start time as first chain block time- 19.0 - 2025-11-25 - Added monad & sei chains- 20.0 - 2025-12-08 - Add stable chain- 21.0 - 2025-12-22 - Split stablecoins by type (USD, EUR, ...)- 22.0 - 2026-02-07 - Swap around the decimals- 23.0 - 2026-02-17 - Add gmx/glv market tokens into the list- 24.0 - 2026-07-02 - Add robinhood chain-> Remove erc20_stablecoins Broken- 25.0 - 2026-07-03 - Add back erc20_stablecoins now fixed- 26.0 - 2026-07-16 - Merge Morpho V1+V2 Matviews in Morpho section- 27.0 - 2026-09-16 - Add arc chain*/with-- blockchains to retrieve token prices fromchains (blockchain) as (values'arbitrum','arc','avalanche_c','base','bnb','celo','ethereum','gnosis','hemi','hyperevm','ink','katana','linea',