Query editor
-- OETH daily aggregate | VALIDATION CHECKED 2026-09-10; DATA THROUGH 2026-09-09.-- AGREED MVP: all 28 SQD columns retained; 26 implemented across 1241 completed UTC days.-- TEMPORARILY SKIPPED: peg=NULL. DEFERRED: accounts_over_threshold=NULL. Neither is removed.-- Exact: total/wrapped supply and intrinsic wrapper rate; APR/APYs within 1e-8 fractional tolerance.-- Supply split:1239/1241 exact. UNRESOLVED CAUSE: Sep 8-9 NR differs by +3171725832013518 wei-- versus SQD (rebasing is opposite). Indexed accounting confirms the difference; no fitted offsets.-- Dripper:1235/1241 exact. EXPLAINED: six Jan 2025 days from SQD's premature contract switch.-- Post-April-2025 vault surplus:498/498 exact. AMO supply:1237/1241 exact; four early SQD-filter days.-- EXPLAINED yield/fee differences:26 days from SQD first-distribution reuse/rebase-ID collision;-- cumulative differences are retained. These SQD bugs are documented, not repaired or reproduced.-- PRICE TABLE: prices_external.minute, Coinpaprika-only native ETH/USD (query8668438).-- AFFECTS ONLY rate_usd and market_cap_usd. ETH:WETH=1:1. New definition, not old price parity.-- Sources:8667902 events;8668447 AMO;8668578 wrapper;8668682 supply split;8668758 old dripper;--8669405 vault surplus (8668846 native ledger,8669473 Curve,8669200 Supernova); ethereum.blocks closes.-- NO external RPC/HTTP, Chainlink or SQD inputs. All dates are block-specific completed UTC days.-- NULL means skipped/deferred or missing source coverage; never zero. Later dates are not prevalidated.-- FULL OUTPUT VALIDATED: execution01M2642RSHMM6W8K0Q5Z5HNQ2E;1241 rows;28 columns;213.038 credits.-- This full-history reference remains separate from incremental query https://dune.com/queries/8670418.-- Latest incremental validation/cost is in that query's description. This reference has no persistence.WITH closing_blocks AS (SELECT CAST(time AS date) AS day,max(number) AS block_number,max(time) AS timestampFROM ethereum.blocksWHERE time>=TIMESTAMP '2023-03-29' AND time<current_dateGROUP BY 1)SELECT d.id,d.chain_id,b.block_number,b.timestamp,'0x856c4efb76c1d1ae02e20ceb03a2a6a08b0b8dc3' AS otoken,d.date,d.apr,d.apy,d.apy7,d.apy14,d.apy30,CAST(NULL AS decimal(38,0)) AS peg,p.rate_usd,d.rate_eth,d.rate_native,d.total_supply,d.total_supply-s.non_rebasing_supply AS rebasing_supply,s.non_rebasing_supply,d.wrapped_supply,w.rate_wrapped,a.amo_supply,CASE WHEN CAST(d.date AS date)<DATE '2025-04-30' THEN h.dripper_weth ELSE v.dripper_weth END AS dripper_weth,d.yield,d.fees,d.cumulative_yield,d.cumulative_fees,CAST(d.total_supply AS double)*CAST(p.rate_usd AS double)/1e18 AS market_cap_usd,CAST(NULL AS integer) AS accounts_over_thresholdFROM query_8667902 dJOIN closing_blocks b ON CAST(d.date AS date)=b.dayLEFT JOIN query_8668438 p ON d.date=p.dateLEFT JOIN query_8668447 a ON d.date=a.dateLEFT JOIN query_8668578 w ON d.date=w.dateLEFT JOIN query_8668682 s ON d.date=s.dateLEFT JOIN query_8668758 h ON d.date=h.dateLEFT JOIN query_8669405 v ON CAST(d.date AS date)=CAST(v.date AS date)WHERE CAST(d.date AS date)>=DATE '2023-04-18' AND CAST(d.date AS date)<current_dateORDER BY d.date DESC