shadabMakerDAO 1 copy copy
    Updated 2024-07-22
    -- forked from pyor-subscriptions / MakerDAO 1 copy @ https://flipsidecrypto.xyz/pyor-subscriptions/q/RJMAaQ6Vlr5v/makerdao-1-copy

    -- forked from banbannard / MakerDAO 1 @ https://flipsidecrypto.xyz/banbannard/q/epof43mrHPu4/makerdao-1

    with base as (select
    depositor,
    min(block_timestamp) as first_tx
    from ethereum.maker.ez_deposits
    where tx_status = 'SUCCESS'
    group by 1)

    select date_trunc('{{granularity}}', first_tx) as first_tx_date,
    count(distinct(depositor)) as count_new_depositor,
    sum(count_new_depositor) over (order by first_tx_date) as cumulative_count_new_depositor
    from base
    group by 1
    order by 1 desc



    QueryRunArchived: QueryRun has been archived