gaonip[Staging] Uniswap L2 avg swap size
    Updated 2024-04-03
    select 'eth' as chain, to_date(block_timestamp) as swap_date, avg(amount_in_usd)
    from ethereum.defi.ez_dex_swaps
    where platform = 'uniswap-v3' and swap_date > '2023-01-01'
    group by swap_date
    union
    select 'op' as chain, to_date(block_timestamp) as swap_date, avg(amount_in_usd)
    from optimism.defi.ez_dex_swaps
    where platform = 'uniswap-v3' and swap_date > '2023-01-01'
    group by swap_date
    UNION
    select 'arb' as chain, to_date(block_timestamp) as swap_date, avg(amount_in_usd)
    from arbitrum.defi.ez_dex_swaps
    where platform = 'uniswap-v3' and swap_date > '2023-01-01'
    group by swap_date
    UNION
    select 'poly' as chain, to_date(block_timestamp) as swap_date, avg(amount_in_usd)
    from polygon.defi.ez_dex_swaps
    where platform = 'uniswap-v3' and swap_date > '2023-01-01'
    group by swap_date
    union
    select 'base' as chain, to_date(block_timestamp) as swap_date, avg(amount_in_usd)
    from base.defi.ez_dex_swaps
    where platform = 'uniswap-v3' and swap_date > '2023-01-01'
    group by swap_date
    QueryRunArchived: QueryRun has been archived