Query editor
-- OETH daily statistics: readable optimized rollup.-- Complete UTC days at their actual closing blocks; original 28 column names/types.-- Components use Dune indexed data only. No RPC/HTTP/Chainlink/SQD input or fitted repairs.-- PRICE: Coinpaprika ETH/USD, prices_external.minute; ETH:WETH = 1:1.-- Only rate_usd and market_cap_usd use that price. Intrinsic wrapper/LP rates do not.-- peg is temporarily skipped and accounts_over_threshold deferred; both remain typed NULLs.-- Known SQD exceptions retained; September 8-9, 2026 supply-split cause remains unresolved.-- The vault component returns assets before supply deduction; subtract the event core once here.-- The wrapper returns credits/factor; final rate uses the same core CPT and share supply.-- Latest validated date range, execution costs and benchmark link are in the description.SELECTcore.id,core.chain_id,prices.block_number,prices.block_time AS timestamp,'0x856c4efb76c1d1ae02e20ceb03a2a6a08b0b8dc3' AS otoken,core.date,core.apr,core.apy,core.apy7,core.apy14,core.apy30,CAST(NULL AS decimal(38,0)) AS peg,prices.rate_usd,core.rate_eth,core.rate_native,core.total_supply,core.total_supply - split.non_rebasing_supply AS rebasing_supply,split.non_rebasing_supply,core.wrapped_supply,CASEWHEN wrapper.method = 'wrapper_credit_replay' THEN CAST(CASEWHEN CAST(core.wrapped_supply AS int256) = INT256 '0'THEN INT256 '1000000000000000000'ELSE (wrapper.wrapper_credits * INT256 '1000000000000000000'/ CAST(core.rebasing_credits_per_token AS int256))* INT256 '1000000000000000000' / CAST(core.wrapped_supply AS int256)END AS decimal(38,0))ELSE CAST(UINT256 '1000000000000000000' * wrapper.adjuster/ CAST(core.rebasing_credits_per_token AS uint256)AS decimal(38,0))END AS rate_wrapped,amo.amo_supply,CASEWHEN CAST(core.date AS date) < DATE '2025-04-30'THEN historical.dripper_wethELSE vault.vault_value_before_supply - CAST(core.total_supply AS decimal(38,0))END AS dripper_weth,core.yield,core.fees,core.cumulative_yield,core.cumulative_fees,CAST(core.total_supply AS double) * CAST(prices.rate_usd AS double) / 1e18 AS market_cap_usd,CAST(NULL AS integer) AS accounts_over_thresholdFROM query_8672964 AS coreJOIN query_8672998 AS prices ON core.date = prices.date