afonsoTotal Orca Pools Transaction numbers grouped by Before and after $BONK
    Updated 2023-02-01
    select
    iff(block_timestamp >= '2022-12-24', 'After BONK', 'Before BONK') as timespan,
    count(distinct tx_id) as txn_count,
    count(distinct address_name) as pools_count,
    count(distinct tx_from) as users_count
    from solana.core.fact_transfers a
    join solana.core.dim_labels b
    on b.address = a.tx_to
    where label ='orca'
    and label_type = 'dex'
    and label_subtype = 'pool'
    and address_name not like '%aquafarm%'
    and block_timestamp::date between date('2022-12-24') - 21 and date('2022-12-24') + 21
    group by 1
    Run a query to Download Data