SalehSushi vs Uni on L2-sushi- tokens symbol in
    Updated 2022-10-15
    with lst_arbitrum_sushi as (
    select
    SYMBOL_IN
    ,count(DISTINCT tx_hash) as swaps
    ,count(DISTINCT ORIGIN_FROM_ADDRESS) as traders
    ,sum(amount_in_usd) as usd_amount
    from arbitrum.sushi.ez_swaps
    where event_name='Swap'
    and amount_in_usd>0
    group by 1
    )
    ,lst_polygon_sushi as (
    select
    SYMBOL_IN
    ,count(DISTINCT tx_hash) as swaps
    ,count(DISTINCT ORIGIN_FROM_ADDRESS) as traders
    ,sum(amount_in_usd) as usd_amount
    from polygon.sushi.ez_swaps
    where event_name='Swap'
    and amount_in_usd>0
    group by 1
    )
    ,lst_optimism_sushi as (
    select
    SYMBOL_IN
    ,count(DISTINCT tx_hash) as swaps
    ,count(DISTINCT ORIGIN_FROM_ADDRESS) as traders
    ,sum(amount_in_usd) as usd_amount
    from optimism.sushi.ez_swaps
    where amount_in_usd>0
    group by 1
    )
    select 'arbitrum->sushi' as type ,* from lst_arbitrum_sushi
    union all
    select 'polygon->sushi' as type ,* from lst_polygon_sushi
    union all
    Run a query to Download Data