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].SELECTDATE_TRUNC('day', tx.block_time) AS day,COUNT(cdp) AS "vaults created",SUM(COUNT(cdp)) OVER (ORDER BYDATE_TRUNC('day', tx.block_time)) AS "all time vaults created"FROMmaker_ethereum.CDP_MANAGER_evt_NewCdp AS cdpLEFT JOIN ethereum.transactions AS tx ON tx.hash = cdp.evt_tx_hashGROUP BY1ORDER BY1 DESC