Query editor
with estimated_issuance as (select day_at,1700 as block_rewards -- Dune doesn't offer beacon chain data yet --> approx issuance of 1700 ETH/day after the mergefrom unnest(sequence(date('2022-09-15') --from,current_date --to,interval '1' day) --interval) as tbl(day_at)),burn as (select date_trunc('day', time) as day_at,sum(gas_used * base_fee_per_gas / 1e18) as burnedfrom ethereum.blockswhere number >= 12965000group by 1),supply as (select i.day_at,120521141 as initial_supply -- ETH supply at the time of the merge,sum(block_rewards) over(order by i.day_at) AS total_issued,sum(burned) over(order by i.day_at) AS total_burned,greatest(0, sum(block_rewards - burned) over(order by i.day_at)) AS net_issued,least(0, sum(block_rewards - burned) over(order by i.day_at)) AS net_burned,sum(block_rewards - burned) over(order by i.day_at) AS net_issuance,sum((block_rewards - burned) / 120521141) over(order by i.day_at) AS net_issuance_pct,120521141 + sum(block_rewards - burned) over(order by i.day_at) AS total_supplyfrom estimated_issuance as ileft join burn as bon i.day_at = b.day_at)select s.*,price,total_supply * price as mcap,total_supply * price / 1e6 as mcap_millions,date_diff('day', date('2022-09-15'), s.day_at) as days_since_mergefrom supply as sleft join prices.usd as pon p.minute = s.day_atwhere symbol = 'WETH'and blockchain = 'ethereum'order by day_at desc