Query editor
-- ═══════════════════════════════════════════════════════════════════════════-- Full table-- ═══════════════════════════════════════════════════════════════════════════-- Reads from three materialized views:-- dune.orhard_girl0.result_idle_liquidity_holders_classification-- dune.orhard_girl0.result_active_vs_dormant-- dune.orhard_girl0.result_04_b_icp_wallets-- ═══════════════════════════════════════════════════════════════════════════WITHhc AS (-- Layer 1-4 sources: holder classificationSELECTSUM(total_usd) AS total_supply_usd,SUM(wallet_count) AS total_wallets,SUM(CASE WHEN holder_type = 'cex' THEN total_usd ELSE 0 END) AS cex_usd,SUM(CASE WHEN holder_type = 'cex' THEN wallet_count ELSE 0 END) AS cex_wallets,SUM(CASE WHEN holder_type IN ('contract_other', 'multisig_safe') THEN total_usd ELSE 0 END) AS contract_usd,SUM(CASE WHEN holder_type IN ('contract_other', 'multisig_safe') THEN wallet_count ELSE 0 END) AS contract_wallets,SUM(CASE WHEN holder_type = 'eoa' THEN total_usd ELSE 0 END) AS eoa_usd,SUM(CASE WHEN holder_type = 'eoa' THEN wallet_count ELSE 0 END) AS eoa_walletsFROM dune.orhard_girl0.result_idle_liquidity_holders_classification),av AS (-- Layer 5-7 sources: activity bucketsSELECTSUM(CASE WHEN activity_bucket IN ('6_dormant_1y_plus', '6_dormant_2y_plus') THEN total_usd ELSE 0 END) AS dormant_usd,SUM(CASE WHEN activity_bucket IN ('6_dormant_1y_plus', '6_dormant_2y_plus') THEN wallet_count ELSE 0 END) AS dormant_wallets,SUM(CASE WHEN activity_bucket IN ('2_active_30d', '3_active_90d', '4_active_180d', '5_active_365d') THEN total_usd ELSE 0 END) AS occasional_usd,SUM(CASE WHEN activity_bucket IN ('2_active_30d', '3_active_90d', '4_active_180d', '5_active_365d') THEN wallet_count ELSE 0 END) AS occasional_wallets,SUM(CASE WHEN activity_bucket = '1_active_7d' THEN total_usd ELSE 0 END) AS active_7d_usd,SUM(CASE WHEN activity_bucket = '1_active_7d' THEN wallet_count ELSE 0 END) AS active_7d_walletsFROM dune.orhard_girl0.result_active_vs_dormant),icp AS (-- Layer 9 source: ICP walletsSELECTCOUNT(*) AS icp_wallets,SUM(current_balance_usd) AS icp_usdFROM dune.orhard_girl0.result_04_b_icp_wallets)SELECT 1 AS layer_order,'Total USDC + USDT supply (>=$1k)' AS layer_name,(SELECT total_wallets FROM hc) AS wallets,(SELECT total_supply_usd FROM hc) AS tvl_usd,100.0 AS pct_of_totalUNION ALLSELECT 2, '- CEX hot wallets',(SELECT cex_wallets FROM hc),(SELECT cex_usd FROM hc),ROUND(100.0 * (SELECT cex_usd FROM hc) / (SELECT total_supply_usd FROM hc), 1)UNION ALLSELECT 3, '- Contracts and multisigs',(SELECT contract_wallets FROM hc),(SELECT contract_usd FROM hc),