MLDZMNOPvs5
    Updated 2022-10-05
    SELECT
    SYMBOL_IN,
    count(distinct tx_hash) as swap_no,
    count(distinct ORIGIN_FROM_ADDRESS) as swappers,
    sum(AMOUNT_IN_USD) as volume,
    volume/swap_no as average_volume
    FROM optimism.velodrome.ez_swaps where SYMBOL_OUT='OP'
    group by 1 having volume is not null
    union all
    SELECT
    SYMBOL_IN,
    count(distinct tx_hash) as swap_no,
    count(distinct ORIGIN_FROM_ADDRESS) as swappers,
    sum(AMOUNT_IN_USD) as volume,
    volume/swap_no as average_volume
    FROM optimism.sushi.ez_swaps where SYMBOL_OUT='OP'
    group by 1 having volume is not null
    order by 4 desc limit 10
    Run a query to Download Data