Skip to content
Dune Analytics

@rchen8 / Total yearn.finance users over time

Total yearn.finance users over time

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

1SELECT date, sum(users) OVER (
2                              ORDER BY date ASC ROWS BETWEEN unbounded preceding AND CURRENT ROW) AS total_users
3FROM
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(block_time)) AS date, -- Pool1
10 "from" AS account
11         FROM ethereum."transactions"
12         WHERE "to" = '\x0001fb050fe7312791bf6475b96569d83f695c9f'
13           AND block_time >= '2020-07-17'
14           AND success
15         GROUP BY 2
16         UNION SELECT date_trunc('day', min(block_time)) AS date, -- Pool2
17 "from" AS account
18         FROM ethereum."transactions"
19         WHERE "to" = '\x033e52f513f9b98e129381c6708f9faa2dee5db5'
20           AND block_time >= '2020-07-18'
21           AND success
22         GROUP BY 2
23         UNION SELECT date_trunc('day', min(block_time)) AS date, -- Pool3
24 "from" AS account
25         FROM ethereum."transactions"...

SQL query results

Loading