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('minute', block_time) AS minute,SUM(art / CAST(1e18 AS DOUBLE)) AS liq,SUM(SUM(art / CAST(1e18 AS DOUBLE))) OVER (ORDER BYDATE_TRUNC('minute', block_time)) AS total_liq,AVG(p.price) AS eth_priceFROMmaker_ethereum.CAT_evt_BiteLEFT 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 p.symbol = 'WETH'GROUP BY1ORDER BY1 DESCLIMIT100