shadabMakerDAO 2 copy
Updated 2024-09-01
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
›
⌄
-- forked from banbannard / MakerDAO 2 @ https://flipsidecrypto.xyz/banbannard/q/KOjDqWIGPZ5P/makerdao-2
with base as (select
withdrawer,
min(block_timestamp) as first_tx
from ethereum.maker.ez_withdrawals
where tx_status = 'SUCCESS'
group by 1)
select date_trunc('{{granularity}}', first_tx) as first_tx_date,
count(distinct(withdrawer)) as count_new_withdrawer,
sum(count_new_withdrawer) over (order by first_tx_date) as cumulative_count_new_withdrawer
from base
group by 1
order by 1 desc
QueryRunArchived: QueryRun has been archived