Query editor
WITH flows AS (SELECT evt_block_time AS t, 'borrow' AS kind, CAST(assets AS double) AS amtFROM morpho_blue_ethereum.morphoblue_evt_borrowWHERE id = 0xaa7231d6bee28b578efe38b52e801d5d3067023853342fc06ded437d2a80ef98UNION ALLSELECT evt_block_time, 'repay', -CAST(assets AS double)FROM morpho_blue_ethereum.morphoblue_evt_repayWHERE id = 0xaa7231d6bee28b578efe38b52e801d5d3067023853342fc06ded437d2a80ef98UNION ALLSELECT evt_block_time, 'supplycollateral', CAST(assets AS double)FROM morpho_blue_ethereum.morphoblue_evt_supplycollateralWHERE id = 0xaa7231d6bee28b578efe38b52e801d5d3067023853342fc06ded437d2a80ef98UNION ALLSELECT evt_block_time, 'withdrawcollateral', -CAST(assets AS double)FROM morpho_blue_ethereum.morphoblue_evt_withdrawcollateralWHERE id = 0xaa7231d6bee28b578efe38b52e801d5d3067023853342fc06ded437d2a80ef98)SELECT'A. start of outage 2026-06-24 15:27 UTC' AS as_of,round(sum(CASE WHEN kind IN ('borrow','repay') THEN amt ELSE 0 END) / 1e18, 2) AS net_borrow_loan_units,round(sum(CASE WHEN kind IN ('supplycollateral','withdrawcollateral') THEN amt ELSE 0 END) / 1e5, 2) AS net_collateral_eutbl,count(*) AS n_eventsFROM flowsWHERE t <= TIMESTAMP '2026-06-24 15:27:11'UNION ALLSELECT'B. end of outage 2026-06-29 16:03 UTC',round(sum(CASE WHEN kind IN ('borrow','repay') THEN amt ELSE 0 END) / 1e18, 2),round(sum(CASE WHEN kind IN ('supplycollateral','withdrawcollateral') THEN amt ELSE 0 END) / 1e5, 2),count(*)FROM flowsWHERE t <= TIMESTAMP '2026-06-29 16:03:11'UNION ALLSELECT'C. window end 2026-07-27',round(sum(CASE WHEN kind IN ('borrow','repay') THEN amt ELSE 0 END) / 1e18, 2),round(sum(CASE WHEN kind IN ('supplycollateral','withdrawcollateral') THEN amt ELSE 0 END) / 1e5, 2),count(*)FROM flowsWHERE t <= TIMESTAMP '2026-07-27 23:59:59'ORDER BY 1