Sandeshuser retention
    Updated 2025-06-29
    with ronin_chain as
    (
    with temp as
    (
    select from_address, min(date_trunc('week',block_timestamp)) as joined, max(date_trunc('week',block_timestamp)) as exited, count(distinct date_trunc('week',block_timestamp)) as weeks_active
    from ronin.core.fact_transactions
    where 1=1
    and from_address in ( select from_address from ronin.core.fact_transactions where block_timestamp>='2024-12-01' and nonce=0)
    group by from_address
    )
    select weeks_active, count(from_address) as users, sum(users) over (order by weeks_active asc) as total_users, 100*users/total_users as retention_ratio
    from temp
    group by weeks_active

    ),
    base_chain as
    (
    with temp as
    (
    select from_address, min(date_trunc('week',block_timestamp)) as joined, max(date_trunc('week',block_timestamp)) as exited, count(distinct date_trunc('week',block_timestamp)) as weeks_active
    from base.core.fact_transactions
    where 1=1
    and from_address in ( select from_address from base.core.fact_transactions where block_timestamp>='2024-12-01' and nonce=0)
    group by from_address
    )
    select weeks_active, count(from_address) as users, sum(users) over (order by weeks_active asc) as total_users, 100*users/total_users as retention_ratio
    from temp
    group by weeks_active

    ),
    ethereum_chain as
    (
    with temp as
    (
    select from_address, min(date_trunc('week',block_timestamp)) as joined, max(date_trunc('week',block_timestamp)) as exited, count(distinct date_trunc('week',block_timestamp)) as weeks_active
    from ethereum.core.fact_transactions
    Last run: 3 months ago
    TIME
    WEEKS_ACTIVE
    RONIN_RETENTION
    BASE_RETENTION
    ETH_RETENTION
    1
    2 month80.010471250.001121280.00310211
    2
    3 month120.006708860.000323150.00089379
    3
    1 week1111
    4
    1 month40.03709390.007227360.02110274
    4
    161B
    161s