Skip to content
Dune Analytics

@johaya / Aave users change over time (MoM)

Aave users change over time (MoM)

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

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('month', evt_block_time) AS date,
14                _target AS account
15         FROM aave."LendingPool_evt_FlashLoan"
16         UNION SELECT date_trunc('month', evt_block_time) AS date,
17                      _user AS account
18         FROM aave."LendingPool_evt_Borrow"
19         UNION SELECT date_trunc('month', evt_block_time) AS date,
20                      _user AS account
21         FROM aave."LendingPool_evt_Deposit") AS table1
22      GROUP BY account) AS table2
23   GROUP BY date
24   ORDER BY date) AS table3
25   )a