Skip to content
Dune Analytics

@rlg195 / DPI Creation Redemption

DPI Creation Redemption

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 volume AS (
2SELECT
3    "_quantity"/1e18 as quantity,
4    evt_block_time
5FROM setprotocol_v2."BasicIssuanceModule_evt_SetTokenIssued"
6WHERE "_setToken" IN ('\x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b')
7UNION ALL
8SELECT
9    "_quantity"/1e18 as quantity,
10    evt_block_time
11FROM setprotocol_v2."BasicIssuanceModule_evt_SetTokenRedeemed"
12WHERE "_setToken" IN ('\x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b')
13)
14
15SELECT SUM(quantity) as dpi_units, date_trunc('day', evt_block_time) as day FROM volume GROUP BY 2;

Result visualizations

CounterDPI Creation Redemption

Loading