Skip to content
Dune Analytics

@MatteoLeibowitz / MKR Price/Earnings Ratio

MKR Price/Earnings Ratio

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 SCD_burn AS
2(
3SELECT
4date_trunc('day', evt_block_time) AS day,
5AVG(p.price) as MKR_price,
6sum(wad/1e18*p.price) as "SCD_burn",
7sum(sum(wad/1e18*p.price)) over (order by date_trunc('day', evt_block_time)) as MKR_cumulative_burn
8FROM maker."MKR_evt_Transfer" m
9INNER JOIN prices.usd p ON p.minute = date_trunc('minute', evt_block_time)
10WHERE m.dst = '\x69076e44a9C70a67D5b79d95795Aba299083c275' 
11AND evt_block_time > now() - interval '365 days'
12AND p.symbol = 'MKR'
13GROUP BY 1
14ORDER BY 1 desc
15),
16
17MCD_burn as
18(
19SELECT
20date_trunc('day', evt_block_time) as day,
21sum(e.value/1e18*p.price) AS "MCD_burn"
22FROM erc20."ERC20_evt_Transfer" e
23INNER JOIN prices.usd p ON p.minute = date_trunc('minute', evt_block_time)
24WHERE e."to" = '\xdfE0fb1bE2a52CDBf8FB962D5701d7fd0902db9f'
25and p.symbol = 'MKR'...