MasiNew Users:
    Updated 2025-02-25
    with tb0 as ( select DISTINCT tx_hash
    from aptos.core.fact_events
    where EVENT_RESOURCE ilike '%StakeThalaAPTEvent%')
    ,
    tb1 as ( select trunc(block_timestamp,'day') as date,
    account_address
    from aptos.core.fact_transfers
    where token_address = '0xfaf4e633ae9eb31366c9ca24214231760926576c7b625313b3688b5e900731f6::staking::ThalaAPT'
    and TRANSFER_EVENT = 'DepositEvent'
    and tx_hash not in (select tx_hash from tb0)
    )
    ,
    tb2 as (select min(date) as min_date,
    account_address
    from tb1
    group by 2)

    select trunc(min_date,'day') as day,
    count(DISTINCT account_address) as new_users,
    sum(new_users) over (order by day asc) as cumulative_new_users
    from tb2
    group by 1
    Last run: about 1 month ago
    DAY
    NEW_USERS
    CUMULATIVE_NEW_USERS
    1
    2024-03-29 00:00:00.00016521432
    2
    2024-11-30 00:00:00.0005146127
    3
    2024-09-07 00:00:00.00010741333
    4
    2025-01-19 00:00:00.0004149272
    5
    2024-07-22 00:00:00.0001536186
    6
    2024-09-10 00:00:00.0006441441
    7
    2024-03-09 00:00:00.00015914410
    8
    2024-10-04 00:00:00.0004443206
    9
    2023-12-15 00:00:00.000741196
    10
    2024-04-12 00:00:00.00019024650
    11
    2024-03-10 00:00:00.00025314663
    12
    2024-05-01 00:00:00.0004228408
    13
    2024-01-14 00:00:00.000813565
    14
    2023-12-19 00:00:00.000661553
    15
    2024-08-04 00:00:00.0003837112
    16
    2024-03-23 00:00:00.00024419943
    17
    2024-05-08 00:00:00.00024029041
    18
    2024-03-24 00:00:00.00019320136
    19
    2023-12-14 00:00:00.0001031122
    20
    2024-10-29 00:00:00.0006844445
    ...
    462
    17KB
    124s