Query editor
select avg(total_daily_volume) as avg_daily_volume, sum(l2_daily_volume) / sum(total_daily_volume) * 100 as l2_volume_pctfrom (select block_date, sum(amount_usd) as total_daily_volume, sum(amount_usd) filter (where blockchain <> 'ethereum') as l2_daily_volume-- , sum(amount_usd) filter (where blockchain <> 'ethereum') / sum(amount_usd) * 100 as l2_volume_pctfrom dex.tradeswhere project = 'uniswap'and version ='4'and block_date >= date('2025-01-29')group by 1)