permaryCurrent New users
    Updated 2025-03-08
    WITH user_first_activity AS (
    -- Find the first day each user interacted with fantasy contracts
    SELECT
    origin_from_address as user_address,
    MIN(date_trunc('day', block_timestamp)) as first_date
    FROM monad.testnet.fact_event_logs
    WHERE contract_address IN (
    LOWER('0x04edB399CC24a95672BF9B880EE550dE0b2D0B1e'),
    LOWER('0x9077D31A794D81c21b0650974d5F581F4000CD1a'),
    LOWER('0xfA4D5a9ceA2822BA08d0266F121011aC527ced64')
    )
    GROUP BY user_address
    ),
    daily_new_users AS (
    -- Count new users for each day
    SELECT
    first_date as "Date",
    COUNT(*) as "New Users"
    FROM user_first_activity
    GROUP BY first_date
    )

    -- Get the most recent date with new users
    SELECT
    "Date",
    "New Users"
    FROM daily_new_users
    ORDER BY "Date" DESC
    LIMIT 1;
    Last run: about 2 months ago
    Date
    New Users
    1
    2025-03-08 00:00:00.00014374
    1
    35B
    8s