Afonso_DiazRetention Rate
Updated 2025-02-20
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
main as (
select
tx_hash,
block_timestamp,
origin_from_address as user,
utils.udf_hex_to_int(data)::bigint / 1e18 as amount,
iff(topics[1] = '0x0000000000000000000000000000000000000000000000000000000000000000', 'Stake', 'Unstake') as event_name
from
monad.testnet.fact_event_logs
where
tx_succeeded
and origin_to_address = '0xb2f82d0f38dc453d596ad40a37799446cc89274a'
and topics[0] = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'
and contract_address = lower('0xb2f82D0f38dc453D596Ad40A37799446Cc89274A')
),
user_activity as (
select
user,
block_timestamp::date as activity_date
from main
group by 1, 2
),
first_seen as (
select
user,
min(activity_date) as first_seen_date
from user_activity
group by 1
),
retention_30d as (
select
QueryRunArchived: QueryRun has been archived