Query editor
-- Clean business view: Tycho User Volume by dashboard router release group.-- Full history is fixed internally. The only visible controls are chain and-- timeframe. Exact-input/output valuation and coverage remain in diagnostics.WITH source AS (SELECTperiod_start,router_abi_family,router_generation,metric_value,observed_row_countFROM "query_7970737(chain='{{chain}}',timeframe='{{timeframe}}',end_date_mode='through_current_day',start_date='2025-01-01 00:00:00',end_date='2100-01-01 00:00:00')"WHERE metric_family = 'router_deployment'AND metric_name = 'execution_volume_usd_best_available'),classified AS (SELECTperiod_start,CASE WHEN router_generation = 'router_v3_3' THEN 'Router V3.3 (current)'ELSE CASE router_abi_familyWHEN 'router1_legacy' THEN 'Router V1'WHEN 'router2_legacy' THEN 'Router V2'WHEN 'router3_legacy' THEN 'Router V2.1 (pre-fee)'WHEN 'router3new_client_fee' THEN 'Router V3 (fee-capable)'WHEN 'router3_2_current' THEN 'Router V3.1 (prior)'WHEN 'router3_positive_slippage_v1' THEN 'Router V3.2 (current)'END END AS router_group,metric_value AS volume_usd,observed_row_countFROM source),mapping_gate AS (SELECT COUNT_IF(router_group IS NULL) AS unmapped_rowsFROM classified),grouped AS (SELECTc.period_start,c.router_group,SUM(c.volume_usd) AS volume_usd,SUM(c.observed_row_count) AS observed_callsFROM classified cCROSS JOIN mapping_gate gWHERE g.unmapped_rows = 0GROUP BY 1, 2),periods AS (SELECT DISTINCT period_startFROM classified),pivoted AS (SELECTp.period_start,CASEWHEN COALESCE(SUM(g.observed_calls) FILTER (WHERE g.router_group = 'Router V1'), 0) = 0