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].WITHDAI_mint AS (SELECTDATE_TRUNC('day', call_block_time) AS day,SUM(wad / CAST(1e18 AS DOUBLE)) AS dai_mintedFROMmaker_ethereum.DAI_call_mintWHEREcall_success = TRUEGROUP BY1ORDER BY1 DESC),DAI_burn AS (SELECTDATE_TRUNC('day', call_block_time) AS day,SUM(wad / CAST(1e18 AS DOUBLE)) AS dai_burntFROMmaker_ethereum.DAI_call_burnWHEREcall_success = TRUEGROUP BY1ORDER BY1 DESC),DAI_net_mint AS (SELECTdai_mint.day AS day,SUM(dai_minted - dai_burnt) AS net_dai_mintFROMdai_mintLEFT JOIN dai_burn ON dai_mint.day = dai_burn.dayGROUP BY1ORDER BY1 DESC),DSR_inbound AS (SELECTDATE_TRUNC('day', call_block_time) AS day,SUM(cast(rad as int256) / CAST(1e45 AS DOUBLE)) AS inbFROMmaker_ethereum.VAT_call_moveWHEREdst = 0x197e90f9fad81970ba7976f33cbd77088e5d7cf7AND call_successGROUP BY1ORDER BY1 DESC),DSR_outbound AS (SELECTDATE_TRUNC('day', call_block_time) AS day,