Ariooptimism and ftx - velodrome - 10
    Updated 2022-11-18
    select
    'SWAP' as Activity,
    block_timestamp::date as date,
    count(distinct TX_HASH) as "# TXs",
    count(distinct ORIGIN_FROM_ADDRESS) as "# Users"
    from optimism.velodrome.ez_swaps
    where BLOCK_TIMESTAMP >= CURRENT_DATE-17
    and BLOCK_TIMESTAMP < CURRENT_DATE
    group by 1,2

    union ALL

    select
    'LP ACTION' as Activity,
    block_timestamp::date as date,
    count(distinct TX_HASH) as "# TXs",
    count(distinct ORIGIN_FROM_ADDRESS) as "# Users"
    from optimism.velodrome.ez_lp_actions
    where BLOCK_TIMESTAMP >= CURRENT_DATE-17
    and BLOCK_TIMESTAMP < CURRENT_DATE
    group by 1,2

    union ALL

    select
    'STAKING ACTION' as Activity,
    block_timestamp::date as date,
    count(distinct TX_HASH) as "# TXs",
    count(distinct LP_PROVIDER_ADDRESS) as "# Users"
    from optimism.velodrome.ez_staking_actions
    where BLOCK_TIMESTAMP >= CURRENT_DATE-17
    and BLOCK_TIMESTAMP < CURRENT_DATE
    group by 1,2
    Run a query to Download Data