Query editor
with pools_trade_pool_ids as (select topic1 as pool_id from robinhood.logswhere contract_address in (0x23f8209572b4a1C2AD88A42749E830791Fb027f1, 0xAD44D55E7f8337C3cE113fBb591486E85be104b2)and topic0 = 0x3b3d2bafdcae274a232217e1f80ee4305d3af6aa25c8b14b1681bd68d18042a4unionselect topic2 as pool_id from robinhood.logswhere contract_address = 0x05d552391067389EE44fec3924157ed33F976000and topic0 = 0xbcc36534419debbbf0f25857d1fef3e4bbce9527091c805e9a7da93dbfd828f4)select date_trunc('day', l.block_time) as day,count(distinct tx."from") as active_tradersfrom robinhood.logs ljoin pools_trade_pool_ids p on l.topic1 = p.pool_idjoin robinhood.transactions tx on l.tx_hash = tx.hash and l.block_number = tx.block_numberwhere l.contract_address = 0x8366A39cC670b4001A1121B8f6a443A643e40951and l.topic0 = 0x40e9cecb9f5f1f1c5b9c97dec2917b7ee92e57ba5563708daca94dd84ad7112fgroup by 1 order by 1