Skip to content
Dune Analytics

@overanalyser / DPI value held

USD Value in RenVM Over Time (Stacked) 📈DPI value held

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 imSUP AS (SELECT day, SUM(transfer) over (order by day) as imbtc_supply
2                FROM ( SELECT date_trunc('day', evt_block_time) as day,
3                sum(value/1e8) as transfer
4                FROM erc20."ERC20_evt_Transfer"
5                WHERE contract_address = '\x3212b29E33587A00FB1C83346f5dBFA69A458923' -- imBTC token contract address
6                AND "from" = '\x0000000000000000000000000000000000000000'
7                GROUP BY 1
8            UNION
9                SELECT
10                date_trunc('day', evt_block_time) as day,
11                sum(-value/1e8) as transfer
12                FROM erc20."ERC20_evt_Transfer"
13                WHERE contract_address = '\x3212b29E33587A00FB1C83346f5dBFA69A458923' -- imBTC token contract address
14                AND "to" = '\x0000000000000000000000000000000000000000'
15                GROUP BY 1) as net),
16
17    wSUP AS (SELECT day, SUM(transfer) over (order by day) wbtc_supply
18              FROM (SELECT date_trunc('day', evt_block_time) as day, sum(value/1e8) as transfer
19                      FROM erc20."ERC20_evt_Transfer"
20                      WHERE contract_address = '\x2260fac5e5542a773aa44fbcfedf7c193bc2c599' -- wBTC contract address
21                      AND "from" = '\x0000000000000000000000000000000000000000'
22                      GROUP BY 1
23                    UNION
24                      SELECT
25                      date_trunc('day', evt_block_time) as day,...