DATE | Cumulative Unique Unstakers | |
---|---|---|
1 | 2025-02-17 00:00:00.000 | 1 |
2 | 2025-02-18 00:00:00.000 | 2 |
3 | 2025-02-19 00:00:00.000 | 192 |
4 | 2025-02-20 00:00:00.000 | 3616 |
5 | 2025-02-21 00:00:00.000 | 6827 |
6 | 2025-02-22 00:00:00.000 | 10209 |
7 | 2025-02-23 00:00:00.000 | 15587 |
8 | 2025-02-24 00:00:00.000 | 22631 |
9 | 2025-02-25 00:00:00.000 | 32136 |
10 | 2025-02-26 00:00:00.000 | 46656 |
11 | 2025-02-27 00:00:00.000 | 56216 |
12 | 2025-02-28 00:00:00.000 | 71324 |
13 | 2025-03-01 00:00:00.000 | 80024 |
14 | 2025-03-02 00:00:00.000 | 89628 |
15 | 2025-03-03 00:00:00.000 | 96765 |
16 | 2025-03-04 00:00:00.000 | 104071 |
17 | 2025-03-05 00:00:00.000 | 111347 |
18 | 2025-03-06 00:00:00.000 | 118179 |
19 | 2025-03-07 00:00:00.000 | 129640 |
20 | 2025-03-08 00:00:00.000 | 137769 |
Mrftiunstakers
Updated 18 hours ago
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
›
⌄
-- forked from compulsory-maroon copy copy @ https://flipsidecrypto.xyz/studio/queries/73c7f981-de42-4ddb-b105-726900098027
WITH database AS (
SELECT
a.BLOCK_TIMESTAMP,
a.TX_HASH,
a.ORIGIN_FROM_ADDRESS as "Unstaker"
FROM
monad.testnet.fact_event_logs a
join
monad.testnet.fact_transactions b on a.tx_hash = b.tx_hash
where a.CONTRACT_ADDRESS = lower ('0xb2f82d0f38dc453d596ad40a37799446cc89274a')
and a.ORIGIN_TO_ADDRESS = lower ('0xb2f82d0f38dc453d596ad40a37799446cc89274a')
and a.ORIGIN_FUNCTION_SIGNATURE = '0x492e47d2'
and a.TX_SUCCEEDED = 'TRUE'
),
first_time_stakers AS (
SELECT
"Unstaker",
MIN(DATE(BLOCK_TIMESTAMP)) AS "First Unstaking Date" -- Get the first staking date for each staker
FROM database
GROUP BY 1
),
daily_unique_stakers AS (
SELECT
"First Unstaking Date" AS date,
COUNT("Unstaker") AS "New Unique Unstakers" -- Count new unique stakers per day
FROM first_time_stakers
GROUP BY 1
)
SELECT
date,
SUM("New Unique Unstakers") OVER (ORDER BY date) AS "Cumulative Unique Unstakers" -- Calculate cumulative unique stakers
FROM daily_unique_stakers
Last run: about 18 hours agoAuto-refreshes every 12 hours
70
2KB
191s