Query editor
with base as (selectdate_trunc('week',block_date) as ds,-- concat(project, '_', version) as project,casewhen token_pair in ('USDC-WETH', 'cbBTC-USDC', 'AVNT-USDC', 'EURC-USDC', 'msUSDC-USDC', 'AERO-USDC') then token_pairelse 'other'end as token_pair,count(distinct tx_hash) as count_tx,sum(amount_usd) as volume_usdfrom dex.tradeswhereblockchain = 'base' andblock_time >= current_date - interval '12' month andproject like '%aerodrome%' anddate_trunc('day', block_time) != timestamp '2025-04-26' and date_trunc('day', block_time) != timestamp '2025-04-30' and date_trunc('day', block_time) != timestamp '2025-05-08' and(token_bought_address = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 or token_sold_address = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)group by 1,2)select* from base-- where ds <= timestamp '2025-09-29'