Query editor
-- Symbiotic TVL — the headline TVL counters on core-stats.-- Depends on: query_4572414 ([v0] TVL USD), query_4921564 ([v1] TVL by assets),-- query_8291512 ([v2] Core v2 KPIs -> base_v2_tvl_daily 8291505)---- ⚠️⚠️ ORDINAL COUPLING — READ BEFORE EDITING ⚠️⚠️-- Three live counters read this query BY RESULT-ROW POSITION, not by any column value:-- viz 8602477 "[V0] $TVL pre-deposit vaults" -> row 1-- viz 7708536 "[V1] $TVL Mainnet vaults" -> row 2-- viz 8602462 "$TVL all vaults" -> row 3-- Output is ORDER BY row_pos, so those three counters resolve to row_pos 1, 2 and 3.-- ⇒ ANY NEW ROW MUST TAKE row_pos > 3. Never renumber 1/2/3 and never insert between them:-- the counters would silently show different numbers with NO error anywhere.-- Core v2 is therefore row_pos 4, even though it reads oddly after 'total'.---- 2026-08-11: added Core v2 (row_pos 4) and folded it into the total. `source` labels were also-- corrected from their legacy meanings ('v1'->'v0', 'v2'->'v1'); nothing consumes them (the only-- viz showing `source` is the unused table 7708534).WITH combined AS (SELECTROUND(sum(tvl_USD)) AS tvl,'v1' as source,2 AS row_posFROM query_4921564 -- [v1] TVL by assetsUNION ALLSELECTROUND(total_tvl) AS tvl,'v0' as source,1 AS row_posFROM query_4572414 -- [v0] TVL USDUNION ALLSELECTROUND(tvl_usd) AS tvl,'v2' AS source,4 AS row_posFROM query_8291512 -- [v2] Core v2 KPIs)SELECT tvl, source, row_posFROM (SELECT * FROM combinedUNION ALLSELECTROUND(SUM(tvl)) AS tvl,'total' AS source,3 AS row_posFROM combined)ORDER BY row_pos