Query editor
with eclp_list as (select day, pool_symbol, blockchain, pool_address, tvl from query_3665272 -- e-clps on ethereumwhere day in (date(now()) - interval '1' day, date(now()) - interval '7' day)union allselect day, pool_symbol, blockchain, pool_address, tvl from query_3667724 -- e-clps on polygon PoSwhere day in (date(now()) - interval '1' day, date(now()) - interval '7' day)union allselect day, pool_symbol, blockchain, pool_address, tvl from query_3681532 -- e-clps on Optimismwhere day in (date(now()) - interval '1' day, date(now()) - interval '7' day)union allselect day, pool_symbol, blockchain, pool_address, tvl from query_3774094 -- e-clps on Arbitrumwhere day in (date(now()) - interval '1' day, date(now()) - interval '7' day)union allselect day, pool_symbol, blockchain, pool_address, tvl from query_3755764 --zkEVM polygong eclpswhere day in (date(now()) - interval '1' day, date(now()) - interval '7' day)union allselect day, pool_symbol, blockchain, pool_address, tvl from query_3886830 --gnosis eclpswhere day in (date(now()) - interval '1' day, date(now()) - interval '7' day)union allselect day, pool_symbol, blockchain, pool_address, tvl from query_3913285 -- base eclpswhere day in (date(now()) - interval '1' day, date(now()) - interval '7' day)union allselect day, pool_symbol, blockchain, pool_address, tvl from query_4349920 -- avalanche eclpswhere day in (date(now()) - interval '1' day, date(now()) - interval '7' day)union allselect day, 'eclp-fastUSD-USDC' as pool_symbol, 'sei' as blockchain, 0x9b9ba5D3D14d1b6C1d4562F981BB2E3afC91a2b0 as pool_address, tvl from query_4602586 -- sei eclpwhere day in (date(now()) - interval '1' day, date(now()) - interval '7' day)),tvl_comparison as (selectpool_symbol,blockchain,pool_address,max(case when day = date(now()) - interval '1' day then tvl end) as tvl_yesterday,max(case when day = date(now()) - interval '7' day then tvl end) as tvl_7_days_agofrom eclp_listgroup by pool_symbol, blockchain, pool_address),volume as (selecttoken_pair, project_contract_address, blockchain, cumulative_volume_usd, cumulative_swaps, cumulative_feesfrom query_3050831where day = date(now()) - interval '1' day -- taking yesterday's fiure to match up with tvl)selectt.pool_symbol,t.blockchain,t.pool_address,t.tvl_yesterday,t.tvl_7_days_ago,coalesce(t.tvl_yesterday, 0) - coalesce(t.tvl_7_days_ago, 0) as tvl_change_7d,(coalesce(t.tvl_yesterday, 0) - coalesce(t.tvl_7_days_ago, 0)) / coalesce(t.tvl_yesterday, 0) as tvl_change_7d_perc,coalesce(cumulative_volume_usd,0) as cumulative_volume_usd,coalesce(cumulative_swaps,0) as cumulative_swaps,coalesce(cumulative_fees,0) as cumulative_feesfrom tvl_comparison tleft join volume v on v.project_contract_address = t.pool_address and v.blockchain = t.blockchain