JonasoPangolin (2)
Updated 2024-10-30
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
›
⌄
with
A as(
select sum(case when amount_out_usd is not null then amount_out_usd else amount_in_usd end) as volume
from avalanche.defi.ez_dex_swaps
where year(block_timestamp) = '2024'
and platform like '%pangolin%' ),
B as(
select sum(case when amount_out_usd is not null then amount_out_usd else amount_in_usd end) as volume
from avalanche.defi.ez_dex_swaps
where year(block_timestamp) = '2024' ),
C as(
select 'Pangolin' as tag, volume from A union all
select 'Avax Dex' as tag, volume - (select volume from A) from B)
select *, volume/sum(volume) over()*100 as ratio from C
QueryRunArchived: QueryRun has been archived