SalehSushi vs Uni on L2-sushi- tokens symbol in
Updated 2022-10-15
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
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