banbannardVelodrome Health 2
    Updated 2022-09-02
    with base as (select
    origin_from_address,
    min(block_timestamp) as first_tx
    from optimism.velodrome.ez_swaps
    group by 1)

    select date_trunc('day', first_tx) as first_tx_date,
    case when first_tx_date >= '2022-08-05' then 'After Velodrome Exploit' else 'Before Velodrome Exploit' end as periods,
    count(distinct(origin_from_address)) as count_new_swapper,
    sum(count_new_swapper) over (order by first_tx_date) as cumulative_count_new_swapper
    from base
    group by 1
    Run a query to Download Data