Query editor
withdexs as (selectdex_id, dex, blockchain, created_ts, dex_name, token, symbol, decimals, token_indexfrom query_4904590where 1=1and dex IN ({{Pools}})AND blockchain = '{{Chain}}'), dex_tokens as (selecttoken, t.blockchain, t.symbol, t.decimals, t.token as price_token, t.blockchain as price_blockchain, t.decimals as price_decimalsfrom dexs twhere t.token <> 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeunionselect0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee as token, chain as blockchain, symbol, decimals, price_address as price_token, chain as price_blockchain, decimals as price_decimalsfrom tokens.nativewhere chain in ('ethereum', 'base', 'arbitrum', 'polygon')), asset_prices_ext as (selectday, t.token, t.blockchain, p.price as pricefrom prices.usd_daily as pjoin dex_tokens as ton p.contract_address = t.price_tokenand p.blockchain = t.price_blockchainunion all