mlhDaily count of new pools of Whirlpools
Updated 2023-01-13
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
›
⌄
select ifnull(trunc(x.debut,'day'),trunc(y.debut,'day')) as days,
ifnull(count(distinct user),0) as new_users,
ifnull(count(distinct pool),0) as new_pools
from (select distinct tx_from as user,
min(block_timestamp) as debut
from solana.core.fact_transfers x
join solana.core.dim_labels y on x.tx_to=y.address
where block_timestamp>='2022-03-23' --whirlpools launch
and label_type = 'dex'
and label_subtype = 'pool'
and label ='orca'
and address_name not like '%aquafarm%'
group by 1) x
left join (select distinct address_name as pool,
min(block_timestamp) as debut
from solana.core.fact_transfers x
join solana.core.dim_labels y on x.tx_to=y.address
where block_timestamp>='2022-03-23'
and label_type = 'dex'
and label_subtype = 'pool'
and label ='orca'
and address_name not like '%aquafarm%'
group by 1) y on trunc(x.debut,'day')=trunc(y.debut,'day')
group by 1
Run a query to Download Data