yasmin-n-d-r-hLP ACTIVE LUNA
Updated 2023-02-01
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 table1 as (
select
date_trunc (week, block_timestamp) as Week,
TX_SENDER as Active_Users,
count(
distinct trunc(block_timestamp, 'month')
) as days_count
from
terra.core.fact_transactions
WHERE
tx_succeeded = 'True'
group by
1,
2
having
days_count >= 1
)
select
date_trunc(week, block_timestamp) as date,
action,
count (distinct tx_id) as TX_Count,
sum (tx_count) over (
order by
date
) as Cumulative_TX_Count
from
terra.core.fact_lp_actions
WHERE
tx_succeeded = 'True'
and LIQUIDITY_PROVIDER_ADDRESS in (
select
active_users
from
table1
)
group by
Run a query to Download Data