Query editor
-- V3R1 platform revenue: USDC flowing from the contract to the treasury.WITH cfg AS (SELECT0xBB63D546114bbC58663B7bbDdb3a729504761981 AS pm,0x6eD497f19b3e34C9564D9727776066EC58FF78D7 AS treasury,0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 AS usdc,TIMESTAMP '2026-07-13' AS deployed_at)SELECTdate_trunc('day', t.evt_block_time) AS day,SUM(t.value) / 1e6 AS fees_usdc,SUM(SUM(t.value) / 1e6) OVER (ORDER BY date_trunc('day', t.evt_block_time)) AS cumulative_fees_usdcFROM erc20_base.evt_Transfer tCROSS JOIN cfgWHERE t.evt_block_time >= cfg.deployed_atAND t.contract_address = cfg.usdcAND t."from" = cfg.pmAND t.to = cfg.treasuryGROUP BY 1ORDER BY 1