Query editor
-- This query has been migrated to run on DuneSQL.-- If you need to change back because you’re seeing issues, use the Query History view to restore the previous version.-- If you notice a regression, please email [email protected].SELECTweek,SUM(SUM(trades)) OVER (ORDER BYweek) AS cumulative_tradesFROM(SELECTDATE_TRUNC('week', block_time) AS week,COUNT(*) AS tradesFROMdex.tradesWHEREblockchain = 'ethereum'AND project = 'uniswap'GROUP BY1) AS netGROUP BY1ORDER BY1 DESC NULLS FIRST