Skip to content
Dune Analytics

@pengiundev / curve.fi total users over time

curve.fi total 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(theuser) AS users FROM (
5        SELECT theuser, min(date) AS date FROM
6        (
7            SELECT buyer AS theuser, date_trunc('day', min(evt_block_time)) as date
8            FROM curvefi."compound_v2_evt_TokenExchangeUnderlying"
9            GROUP BY buyer
10            
11            UNION
12            
13            SELECT buyer AS theuser, date_trunc('day', min(evt_block_time)) as date
14            FROM curvefi."compound_v2_evt_TokenExchange"
15            GROUP BY buyer
16            
17            UNION
18            
19            SELECT provider AS theuser, date_trunc('day', min(evt_block_time)) as date
20            FROM curvefi."compound_v2_evt_AddLiquidity"
21            GROUP BY provider
22            
23            UNION
24            
25            SELECT provider AS theuser, date_trunc('day', min(evt_block_time)) as date...

SQL query results

Loading