Query editor
with registry as (select distinct output_0 as token_addressfrom robinhood_robinhood.stockfactory_call_deploywhere call_success = true),stock_tx as (selectt.tx_hash,min(t.block_date) as day,max(case when t."from" = 0x0000000000000000000000000000000000000000or t."to" = 0x0000000000000000000000000000000000000000then 1 else 0 end) as is_mintburn,max(case when t."to" in (0x006102b16a04c20306a28b652745d3973d7d24fa,0xf4da3c42d9c9f494d4688a0112a9db3c9b18a914)or t."from" in (0x006102b16a04c20306a28b652745d3973d7d24fa,0xf4da3c42d9c9f494d4688a0112a9db3c9b18a914)then 1 else 0 end) as is_arcusfrom tokens.transfers tjoin registry r on r.token_address = t.contract_addresswhere t.blockchain = 'robinhood'group by 1),rialto_tx as (select distinct tx_hashfrom robinhood.logswhere block_date >= date '2026-06-25'and contract_address = 0xc94135b63772b91d79d0a2daab2a8801f32359bdand topic0 = 0x57eea6b72a8f2bcabded826d953a575345bad3cf4be03293bc0199fd15b7d61c),dex_tx as (selectd.tx_hash,count_if(rb.token_address is not null or rs.token_address is not null) as stock_trades,sum(case when rb.token_address is not null or rs.token_address is not nullthen d.amount_usd end) as stock_usdfrom dex.trades dleft join registry rb on rb.token_address = d.token_bought_addressleft join registry rs on rs.token_address = d.token_sold_addresswhere d.blockchain = 'robinhood'and d.tx_hash in (select tx_hash from stock_tx)group by 1),all_legs as (select tx_hash, max(amount_usd) as usdfrom tokens.transferswhere blockchain = 'robinhood'and block_date >= date '2026-06-25'and amount_usd is not nullgroup by 1),tagged as (selects.day,casewhen s.is_mintburn = 1 then null