par_rnTotal Weekly Number of New Users
Updated 2022-11-26
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 swaps as ( select
date(block_timestamp) as date,
platform,
origin_from_address
from ethereum.core.ez_dex_swaps
where amount_in_usd < 1000000 )
,
sushi as ( select min(date) as min_date, origin_from_address
from swaps
where platform = 'sushiswap'
group by 2)
,
uni_v2 as (select min(date) as min_date, origin_from_address
from swaps
where platform = 'uniswap-v2'
group by 2 )
,
balancer as ( select min(date) as min_date, origin_from_address
from swaps
where platform = 'balancer'
group by 2)
,
uni_v3 as ( select min(date) as min_date, origin_from_address
from swaps
where platform = 'uniswap-v3'
group by 2)
,
curve as ( select min(date) as min_date, origin_from_address
from swaps
where platform = 'curve'
group by 2)
select 'curve' as plat, trunc(min_date,'week') as weekly, count(DISTINCT(origin_from_address)) as new_user, sum(new_user) over (order by weekly) as cum_new
from curve
where min_date >= '2022-01-01'
group by 1,2
Run a query to Download Data