misaghlbSushi vs Uni on L2
Updated 2022-10-16
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
›
⌄
select
date_trunc('week', block_timestamp)::date as date,
'Sushi/Optimism' as type,
count(distinct tx_hash) as swap_count,
count(distinct origin_from_address) as wallets,
sum(swap_count) over (order by date asc) as cumu_swaps,
sum(wallets) over (order by date asc) as cumu_wallets
from optimism.sushi.ez_swaps
group by 1
UNION ALL
select
date_trunc('week', block_timestamp)::date as date,
'Sushi/Arbitrum' as type,
count(distinct tx_hash) as swap_count,
count(distinct origin_from_address) as wallets,
sum(swap_count) over (order by date asc) as cumu_swaps,
sum(wallets) over (order by date asc) as cumu_wallets
from arbitrum.sushi.ez_swaps
group by 1
UNION ALL
select
date_trunc('week', block_timestamp)::date as date,
'Sushi/Polygon' as type,
count(distinct tx_hash) as swap_count,
count(distinct origin_from_address) as wallets,
sum(swap_count) over (order by date asc) as cumu_swaps,
sum(wallets) over (order by date asc) as cumu_wallets
from polygon.sushi.ez_swaps
group by 1
UNION ALL
Run a query to Download Data