Skip to content
Dune Analytics

@johaya / DeFi users change (WoW)

DeFi users change (WoW)

Excluding Dai users

Loading
 

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 results

Excluding Dai users

Loading
 

SQL query

1Select date,
2        users-users2 as diff
3FROM
4    (SELECT date,
5        lag(users) over (order by date asc ROWS BETWEEN unbounded preceding AND CURRENT ROW) as users2,
6        users
7FROM
8    (SELECT date, count(USER) AS users
9   FROM
10     (SELECT min(date) AS date,
11             account AS USER
12      FROM
13        (SELECT date_trunc('week', evt_block_time) AS date, -- MakerDAO
14 lad AS account
15         FROM maker."SaiTub_evt_LogNewCup"
16         UNION SELECT date_trunc('week', evt_block_time) AS date,
17                      "from" AS account
18         FROM makermcd."CDP_MANAGER_evt_NewCdp" cdp
19         INNER JOIN ethereum."transactions" e ON cdp."evt_tx_hash" = e."hash"
20         UNION SELECT date_trunc('week', evt_block_time) AS date, -- Synthetix
21 account
22         FROM synthetix."Synth_evt_Issued"
23         UNION SELECT date_trunc('week', evt_block_time) AS date,
24                      account
25         FROM synthetix."Synthetix_evt_SynthExchange"...