Query editor
withchain as (select *from UNNEST(SPLIT('{{chain}}', ',')) AS c(chain)),swap as (select block_time,blockchain,tx_hash,tx_from as user,amount_usdfrom dex.tradeswhere 1=1and project = 'uniswap'and blockchain in (select chain from chain)),gas_fee as (selectt1.hash,t1.block_time,t1.blockchain,casewhen t1.blockchain = 'optimism' then --'Optimism'(t1.l1_fee / 1e18) + t1.gas_used * (t1.gas_price / 1e18)when t1.blockchain = 'zksync' then --'zkSync't1.gas_used * (t1.gas_price / 1e18)when t1.blockchain = 'base' then --'Base'(t1.l1_fee / 1e18) + t1.gas_used * (t1.gas_price / 1e18)when t1.blockchain = 'arbitrum' then --'Arbitrum'((t1.effective_gas_price) * t1.gas_used) / 1e18when t1.blockchain = 'zora' then --'Zora'(t1.l1_fee / 1e18) + t1.gas_used * (t1.gas_price / 1e18)when t1.blockchain = 'scroll' then --'Scroll'(t1.l1_fee / 1e18) + t1.gas_used * (t1.gas_price / 1e18)end as total_feefromevms.transactions as t1wheret1.blockchain in ('optimism','base','zora','zksync','arbitrum','scroll')union allselecthash,block_time,'linea' as blockchain,gas_used * (gas_price / 1e18) as total_feefromlinea.transactionsunion allselecthash,