Query editor
-- Fermi's ramp. The fleet was deployed 2026-06-26; this is what it has-- actually filled since, read straight off the raw `Swapped` event because-- Dune has no ABI for these contracts.---- Swapped(address indexed user, address indexed tokenIn, address indexed-- tokenOut, uint256 amountIn, uint256 amountOut)---- Partition filter is a literal date so the planner prunes to the days that-- can possibly contain a fill — everything before deployment is skipped.WITH fills AS (SELECTblock_date,contract_address,CASEWHEN bytearray_substring(topic2, 13, 20) = 0x5fc5360d0400a0fd4f2af552add042d716f1d168THEN cast(bytearray_to_uint256(bytearray_substring(data, 1, 32)) AS double) / 1e6WHEN bytearray_substring(topic3, 13, 20) = 0x5fc5360d0400a0fd4f2af552add042d716f1d168THEN cast(bytearray_to_uint256(bytearray_substring(data, 33, 32)) AS double) / 1e6ELSE 0.0 -- a leg with no USDG side; counted, not valuedEND AS usdgFROM robinhood.logsWHERE block_date >= date '2026-06-26'AND topic0 = 0x1eeaa4acf3c225a4033105c2647625dbb298dec93b14e16253c4231e26c02b1d)SELECTblock_date AS day,count(*) AS fills,count(DISTINCT contract_address) AS venues_live,sum(usdg) AS usdg_volume,sum(sum(usdg)) OVER (ORDER BY block_date) AS cumulative_usdgFROM fillsGROUP BY 1ORDER BY 1