/ MKR Revenue Over Time (USD) @MatteoLeibowitz
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
SQL query
1WITH MCD as
2(
3SELECT
4date_trunc('day', block_time) as day,
5avg(p.price) as MKR_price,
6sum(e.value/1e18*p.price) AS "MCD_burn"
7FROM erc20."ERC20_evt_Transfer" e
8LEFT JOIN ethereum."transactions" tx ON evt_tx_hash = tx.hash
9INNER JOIN prices.usd p ON p.minute = date_trunc('minute', block_time)
10WHERE e."to" = '\xdfE0fb1bE2a52CDBf8FB962D5701d7fd0902db9f'
11and p.symbol = 'MKR'
12GROUP BY 1
13ORDER BY 1 desc
14),
15
16SCD as
17(
18SELECT
19date_trunc('day', block_time) AS day,
20sum(wad/1e18*p.price) as "SCD_burns" ----SCD burn----
21FROM maker."MKR_evt_Transfer" m
22LEFT JOIN ethereum."transactions" tx ON m.evt_tx_hash = tx.hash
23INNER JOIN prices.usd p ON p.minute = date_trunc('minute', block_time)
24WHERE m.dst = '\x69076e44a9C70a67D5b79d95795Aba299083c275'
25AND p.symbol = 'MKR'...