Query editor
-- CORRECTED prediction vs actual — three Base cascades.---- PREDICTED: positions whose reconstructed health factor crosses 1.0 at the event's full-- ETH drawdown, computed from Aave position state at a snapshot block BEFORE each crash.-- Imported as literals because it comes from archive eth_calls, not Dune tables.---- The candidate universe is every borrower whose FIRST BORROW predates the snapshot block-- (182,740 / 200,191 / 211,105 positions). The superseded version of this chart selected-- candidates on their CURRENT debt, which excluded borrowers liquidated in the event and-- since closed — it could see only 9.7% / 14.6% / 24.1% of the actual victims. See the-- retraction panel on the dashboard.---- ACTUAL: live from aave_v3_base.l2pool_evt_liquidationcall. Not imported.WITH predicted(event, sort_order, predicted_positions) AS (VALUES ('Oct 2025 (ETH -20.5%)', 1, 232),('Jan-Feb 2026 (ETH -39.9%)', 2, 3052),('Jun 2026 (ETH -25.6%)', 3, 922)),windows(event, ts_from, ts_to) AS (VALUES ('Oct 2025 (ETH -20.5%)', TIMESTAMP '2025-10-09', TIMESTAMP '2025-10-13'),('Jan-Feb 2026 (ETH -39.9%)', TIMESTAMP '2026-01-29', TIMESTAMP '2026-02-07'),('Jun 2026 (ETH -25.6%)', TIMESTAMP '2026-06-02', TIMESTAMP '2026-06-07')),actual AS (SELECT w.event, COUNT(DISTINCT l."user") AS actual_liquidatedFROM windows wJOIN aave_v3_base.l2pool_evt_liquidationcall lON l.evt_block_time >= w.ts_from AND l.evt_block_time < w.ts_toJOIN prices.usd pdON pd.blockchain = 'base' AND pd.contract_address = l.debtAssetAND pd.minute = DATE_TRUNC('minute', l.evt_block_time)-- drop dust, matching the filter used throughout this dashboardWHERE l.debtToCover / POWER(10, pd.decimals) * pd.price > 1GROUP BY 1)SELECT p.event,p.predicted_positions,a.actual_liquidatedFROM predicted pJOIN actual a ON a.event = p.eventORDER BY p.sort_order