Skip to content
Dune Analytics

@hagaetc / Example: Compound weekly borrowers

Example: Compound weekly borrowers

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_trunc('week', block_time) AS "week",
2        COUNT(distinct borrower) AS "Unique borrowers"
3FROM compound."view_borrow"
4WHERE block_time > now() - interval '10 weeks' 
5GROUP BY 1
6ORDER BY 1;

SQL query results

Loading