Query editor
selectblock_date as dt, tx_from as user_address, sum(amount_usd) as volumefrom dex.tradeswhere block_time >= timestamp '2025-07-01 00:00:00' and block_time < timestamp '2025-09-01 00:00:00'-- where block_time >= timestamp '2025-08-07 11:00:00' and block_time < timestamp '2025-09-01 00:00:00'and project = 'pancakeswap'and version in ('2','3')and-- PCS web version-- (blockchain = 'bnb' and tx_to in(0x1A0A18AC4BECDDbd6389559687d1A73d8927E416, 0xd9c500dff816a1da21a48a732d3498bf09dc9aeb)(blockchain = 'bnb' and tx_to in(0xd9c500dff816a1da21a48a732d3498bf09dc9aeb)---UniversalRouter--or (blockchain = 'zksync'and tx_to = 0x582854b63251FD246545D1da70e3313D217336a3))and ((token_bought_address in (0xF970706063b7853877F39515C96932D49d5AC9Cd) -- YALAand token_sold_address in (select token_address from dune.chef_butterbeer.dataset_eligible_base_tokens_alpha_trading_competition))or (token_sold_address in (0xF970706063b7853877F39515C96932D49d5AC9Cd)-- YALAand token_bought_address in (select token_address from dune.chef_butterbeer.dataset_eligible_base_tokens_alpha_trading_competition)))group by 1, 2-- having sum(amount_usd) >= 2000order by 1, 3 desc