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', block_time) AS day,SUM(e.value / CAST(1e18 AS DOUBLE) * p.price) AS mcd_rev,SUM(SUM(e.value / CAST(1e18 AS DOUBLE) * p.price)) OVER (ORDER BYDATE_TRUNC('day', block_time)) AS cumulative_mcd_revFROMerc20_ethereum.evt_Transfer AS eLEFT JOIN ethereum."transactions" AS tx ON evt_tx_hash = tx.hashINNER JOIN prices.usd AS p ON p.minute = DATE_TRUNC('minute', block_time)WHEREp.blockchain = 'ethereum'AND e."to" = 0xdfe0fb1be2a52cdbf8fb962d5701d7fd0902db9fAND p.symbol = 'MKR'GROUP BY1ORDER BY1 DESCLIMIT10