yasmin-n-d-r-hswap currency osmo
Updated 2023-01-02Copy 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
26
27
28
29
30
31
32
33
34
35
36
›
⌄
with active as (
select
min(BLOCK_TIMESTAMP) as Weeks,
tx_from as Users
from
osmosis.core.fact_transactions
where
tx_status = 'SUCCEEDED'
group by
2
)
select
*
from
(
SELECT
date_trunc('week', block_timestamp) as week,
project_name,
count(DISTINCT trader) as first_users,
rank() over(
partition by week
order by
first_users desc
) as rank
from
osmosis.core.fact_swaps
join osmosis.core.dim_labels on to_currency = address
where
trader in (
select
users
from
active
)
GROUP BY
1,
Run a query to Download Data