Mrfticompulsory-maroon
    Updated 7 hours ago
    WITH database AS (
    SELECT
    a.BLOCK_TIMESTAMP,
    a.TX_HASH,
    a.ORIGIN_FROM_ADDRESS AS "Staker",
    b.value AS "$MON Staked",
    CAST(ethereum.public.udf_hex_to_int(data) AS DECIMAL) / 1e18 AS "$sMON Received",
    b.tx_fee AS "Fee ($MON)"
    FROM
    monad.testnet.fact_event_logs a
    JOIN monad.testnet.fact_transactions b ON a.tx_hash = b.tx_hash
    WHERE
    a.CONTRACT_ADDRESS = '0x07aabd925866e8353407e67c1d157836f7ad923e'
    AND a.ORIGIN_TO_ADDRESS = '0x07aabd925866e8353407e67c1d157836f7ad923e'
    AND a.ORIGIN_FUNCTION_SIGNATURE = '0x3a4b66f1'
    AND a.TX_SUCCEEDED = 'TRUE'
    AND a.BLOCK_TIMESTAMP > '2025-02-18 00:00:00.000'
    ),
    first_time_stakers AS (
    SELECT
    "Staker",
    MIN(DATE(BLOCK_TIMESTAMP)) AS "First Staking Date" -- Get the first staking date for each staker
    FROM database
    GROUP BY "Staker"
    ),
    daily_unique_stakers AS (
    SELECT
    "First Staking Date" AS date,
    COUNT("Staker") AS "New Unique Stakers" -- Count new unique stakers per day
    FROM first_time_stakers
    GROUP BY "First Staking Date"
    )
    SELECT
    date,
    SUM("New Unique Stakers") OVER (ORDER BY date) AS "Cumulative Unique Stakers" -- Calculate cumulative unique stakers
    FROM daily_unique_stakers
    Last run: about 7 hours agoAuto-refreshes every 12 hours
    DATE
    Cumulative Unique Stakers
    1
    2025-02-18 00:00:00.0004
    2
    2025-02-19 00:00:00.0001385
    3
    2025-02-20 00:00:00.0004466
    4
    2025-02-21 00:00:00.0005939
    5
    2025-02-22 00:00:00.00013086
    6
    2025-02-23 00:00:00.00023138
    7
    2025-02-24 00:00:00.00034848
    8
    2025-02-25 00:00:00.00066758
    9
    2025-02-26 00:00:00.000143695
    10
    2025-02-27 00:00:00.000210357
    11
    2025-02-28 00:00:00.000282848
    12
    2025-03-01 00:00:00.000328628
    13
    2025-03-02 00:00:00.000375550
    14
    2025-03-03 00:00:00.000409693
    15
    2025-03-04 00:00:00.000436540
    16
    2025-03-05 00:00:00.000460052
    17
    2025-03-06 00:00:00.000505068
    18
    2025-03-07 00:00:00.000535739
    19
    2025-03-08 00:00:00.000559222
    20
    2025-03-09 00:00:00.000579044
    28
    966B
    89s