hyoeisemanSN 4
Updated 2022-10-16Copy Reference Fork
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
›
⌄
(select pool_name as top_10_pool_name, count (distinct tx_hash) as number_of_transactions,
count (distinct origin_from_address) as number_of_swappers,
sum (amount_in_usd) as swap_amount, 'optimisim' as type
from optimism.sushi.ez_swaps where amount_in_usd is not null
group by 1
order by 2 desc
limit 5)
union all
(select pool_name as top_10_pool_name, count (distinct tx_hash) as number_of_transactions,
count (distinct origin_from_address) as number_of_swappers,
sum (amount_in_usd) as swap_amount, 'polygon' as type
from polygon.sushi.ez_swaps where amount_in_usd is not null
group by 1
order by 2 desc
limit 5)
union ALL
(select pool_name as top_10_pool_name, count (distinct tx_hash) as number_of_transactions,
count (distinct origin_from_address) as number_of_swappers,
sum (amount_in_usd) as swap_amount, 'arbitrum' as type
from arbitrum.sushi.ez_swaps where amount_in_usd is not null
group by 1
order by 2 desc
limit 5)
Run a query to Download Data