Skip to content
Dune Analytics

@MatteoLeibowitz / MKR Price/Earnings Ratio 2

MKR Price/Earnings Ratio 2

Chart by @teo_leibowitz

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

Chart by @teo_leibowitz

Loading
 

SQL query

1WITH MKR_burn AS
2(
3SELECT
4date_trunc('day', block_time) AS day,
5AVG(p.price) as MKR_price,
6sum(wad/1e18*p.price) as "MKR_burns",
7sum(sum(wad/1e18*p.price)) over (order by date_trunc('day', block_time)) as MKR_cumulative_burn
8FROM maker."MKR_evt_Transfer" m
9LEFT JOIN ethereum."transactions" tx ON m.evt_tx_hash = tx.hash
10INNER JOIN prices.usd p ON p.minute = date_trunc('minute', block_time)
11WHERE m.dst = '\x69076e44a9C70a67D5b79d95795Aba299083c275' 
12AND block_time > now() - interval '365 days'
13AND p.symbol = 'MKR'
14GROUP BY 1
15ORDER BY 1 desc
16),
17
18MKR_price AS
19(SELECT
20minute,
21price
22FROM prices.usd
23WHERE symbol = 'MKR'
24),
25...