hbd1994DEXs Status
Updated 2023-08-29
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 totals as (
select
count(distinct tx_hash) as swap_txs,
count(*) as swaps,
count(distinct ORIGIN_FROM_ADDRESS) as Swappers,
sum(coalesce(AMOUNT_OUT_USD , AMOUNT_IN_USD)) as volume
from base.defi.ez_dex_swaps
where block_timestamp >= '{{Start_Date}}'
and block_timestamp <= '{{End_Date}}'),
dexs as (
select
case
when platform = 'balancer' then 'Balancer'
when platform = 'baseswap' then 'BaseSwap'
when platform = 'dackieswap' then 'DackieSwap'
when platform = 'maverick' then 'Maverick'
when platform = 'sushiswap' then 'SushiSwap'
when platform = 'swapbased' then 'SwapBased'
when platform = 'uniswap-v3' then 'UniSwap'
when platform = 'woofi' then 'WooFi'
end as "DEX",
count(distinct tx_hash) as "Swap Transactions",
count(*) as "Swaps",
count(distinct ORIGIN_FROM_ADDRESS) as "Swapper",
count(distinct block_timestamp::date) as "Activity Days",
sum(coalesce(AMOUNT_OUT_USD , AMOUNT_IN_USD)) as "USD Volume",
count(distinct TOKEN_IN) as "From Tokens",
count(distinct TOKEN_OUT) as "To Tokens",
count(distinct CONTRACT_ADDRESS) as "Pools"
from base.defi.ez_dex_swaps
where block_timestamp >= '{{Start_Date}}'
and block_timestamp <= '{{End_Date}}'
group by 1
order by 2 desc)
Run a query to Download Data