Query editor
-- Coinbase Collat and Borrow Totals Blue — the two KPI counters on dashboard 190330.---- Reads the share-based daily position in result_coinbase_borrow (q5799804) instead of summing-- borrow/repay flows out of result_coinbase_onchain_interactions. The flow sum excluded ALL-- accrued interest: Blue accrues at market level, AccrueInterest adds assets and no shares, and-- those rows carry usr = 0x0 so the Coinbase wallet filter dropped every one of them. It-- understated debt by ~$69.2M (+4.78%) at 2026-09-15. Full explanation in q5799804's header.---- SCOPE CHANGE (2026-09-15): this counter now covers the 9 curated Coinbase markets-- (query_7437221), matching the charts above it. It previously summed ALL Base markets, which-- made the counter and the chart disagree; the difference is ~0.04% because Coinbase borrowing-- is effectively confined to the curated 9.SELECTSUM(cumulated_borrow_usd) AS total_borrow_amount_usd,SUM(cumulated_collat_usd) AS total_collat_amount_usdFROM dune.morpho.result_coinbase_borrowWHERE day = (SELECT MAX(day) FROM dune.morpho.result_coinbase_borrow)