Skip to content
Dune Analytics

@rlg195 / DPI Total Supply

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
3    SELECT 
4        date_trunc('day', evt_block_time) AS day, 
5        SUM("_quantity"/1e18) AS amount 
6        FROM setprotocol_v2."BasicIssuanceModule_evt_SetTokenIssued"
7        WHERE "_setToken" = '\x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b'
8        GROUP BY 1
9
10    UNION ALL
11
12    SELECT 
13        date_trunc('day', evt_block_time) AS day, 
14        -SUM("_quantity"/1e18) AS amount 
15    FROM setprotocol_v2."BasicIssuanceModule_evt_SetTokenRedeemed" 
16    WHERE "_setToken" = '\x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b'
17    GROUP BY 1
18)
19
20SELECT 
21    day, 
22    SUM(amount) OVER (ORDER BY day) AS dpi_amount 
23FROM mint_burn