Query editor
-- Bitcoin Supply Floor vs 401(k) Demand Scenarios-- 21Shares Research | dune.com/21sharesresearch---- Core question: How much BTC is mined daily, and what happens when-- retirement money shows up?---- The math: Post-halving, ~450 BTC/day enter the market.-- 401(k) scenarios (deployed over 3 years at ~$70K BTC):-- 0.25% of $10.1T = ~$23M/day = ~329 BTC/day-- 0.50% of $10.1T = ~$46M/day = ~658 BTC/day-- 1.00% of $10.1T = ~$92M/day = ~1,316 BTC/day---- At 0.5% adoption, 401(k) demand ALONE exceeds daily issuance.-- This doesn't include existing ETF flows.WITH daily_issuance AS (SELECTdate,SUM(mint_reward) AS daily_mined_btc,SUM(total_fees) AS daily_fees_btc,SUM(total_reward) AS daily_total_reward_btc,COUNT(*) AS blocks_minedFROM bitcoin.blocksWHERE date >= DATE '2023-01-01'GROUP BY date),with_price AS (SELECTi.*,p.btc_price_usd,i.daily_mined_btc * p.btc_price_usd AS daily_issuance_usdFROM daily_issuance iLEFT JOIN (SELECTCAST(timestamp AS DATE) AS date,AVG(price) AS btc_price_usdFROM prices.dayWHERE contract_address = 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599AND blockchain = 'ethereum'AND price < 500000GROUP BY CAST(timestamp AS DATE)) p ON i.date = p.date),with_scenarios AS (SELECTdate,daily_mined_btc,blocks_mined,btc_price_usd,daily_issuance_usd,-- 30d MA of daily issuance for smooth lineAVG(daily_mined_btc) OVER (ORDER BY date ROWS BETWEEN 29 PRECEDING AND CURRENT ROW) AS issuance_30d_ma_btc,-- 401(k) demand scenarios in BTC terms (dynamic based on current price)-- $10.1T * adoption% / 3 years / 365 days / btc_priceCASE WHEN btc_price_usd > 0THEN (10100000000000.0 * 0.0025 / 3 / 365) / btc_price_usd