Skip to content
Dune Analytics

@rchen8 / Total MakerDAO users over time

Total MakerDAO users over time


About queries and results

Dune Analytics lets you explore, create, and share Ethereum analytics. You can find an endless amount of great queries and dashboards on Dune.

We have decoded Ethereum smart contract data so you can do powerful analysis with simple SQL queries and visualise the query results into beautiful graphs.

Dune Analytics is free for everyone forever. If you want extra features like private queries, export your results and more check out our Pro plan.

SQL query

1SELECT date, sum(users) OVER (
2                              ORDER BY date ASC ROWS BETWEEN unbounded preceding AND CURRENT ROW) AS total_users
4  (SELECT date, count(USER) AS users
5   FROM
6     (SELECT min(date) AS date,
7             account AS USER
8      FROM
9        (SELECT date_trunc('day', min(evt_block_time)) AS date,
10                lad AS account
11         FROM maker."SaiTub_evt_LogNewCup"
12         GROUP BY 2
13         UNION SELECT date_trunc('day', min(evt_block_time)) AS date,
14                      "from" AS account
15         FROM makermcd."CDP_MANAGER_evt_NewCdp" cdp
16         INNER JOIN ethereum."transactions" tx ON cdp."evt_tx_hash" = tx."hash"
17         AND tx.block_time >= '2019-11-13'
18         GROUP BY 2) AS a
19      GROUP BY 2) AS b
20   GROUP BY 1
21   ORDER BY 1) AS c

SQL query results