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].WITHdates AS (SELECTdayFROMUNNEST (SEQUENCE(date '2017-12-10',CURRENT_DATE,INTERVAL '1' day)) AS _u (day)),BUSD AS (SELECTDATE_TRUNC('day', evt_block_time) AS day,COALESCE(value / CAST(1e18 AS DOUBLE), 0) AS supplyFROMerc20_ethereum.evt_TransferWHEREcontract_address = 0x4fabb145d64652a948d72533023f6e7a623c7c53AND "from" = 0x0000000000000000000000000000000000000000GROUP BY1,2UNIONSELECTDATE_TRUNC('day', evt_block_time) AS day,COALESCE(- cast(value as int256) / CAST(1e18 AS DOUBLE), 0) AS supplyFROMerc20_ethereum.evt_TransferWHEREcontract_address = 0x4fabb145d64652a948d72533023f6e7a623c7c53AND "to" = 0x0000000000000000000000000000000000000000GROUP BY1,2),HUSD AS (SELECTDATE_TRUNC('day', evt_block_time) AS day,SUM(cast(value as int256) / CAST(1e8 AS DOUBLE)) AS supplyFROMerc20_ethereum.evt_TransferWHEREcontract_address = 0xdf574c24545e5ffecb9a659c229253d4111d87e1AND "from" = 0x0000000000000000000000000000000000000000GROUP BY1UNIONSELECTDATE_TRUNC('day', evt_block_time) AS day,SUM(- cast(value as int256) / CAST(1e8 AS DOUBLE)) AS supplyFROMerc20_ethereum.evt_TransferWHERE