Skip to content
Dune Analytics

@overanalyser / Fork of (#11691) DPI Total Supply

Fork of (#11691) DPI Total Supply

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

1WITH mint_burn AS
2(
3SELECT date_trunc('day', evt_block_time) AS day, SUM("_quantity"/1e18) AS amount FROM setprotocol_v2."BasicIssuanceModule_evt_SetTokenIssued" GROUP BY 1
4
5UNION ALL
6
7SELECT date_trunc('day', evt_block_time) AS day, -SUM("_quantity"/1e18) AS amount FROM setprotocol_v2."BasicIssuanceModule_evt_SetTokenRedeemed" GROUP BY 1
8)
9
10SELECT day, SUM(amount) OVER (ORDER BY day) AS dpi_amount FROM mint_burn;
11
12