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]./* steth */WITHsteth AS (SELECTDATE_TRUNC('day', evt_block_time) AS time,SUM(steth) / CAST(1e18 AS DOUBLE) AS stethFROM(SELECT"evt_block_time","from",cast("value" as int256) AS stethFROMerc20_ethereum.evt_TransferWHERE"to" = 0x828b154032950c8ff7cf8085d841723db2696056AND "contract_address" = 0xae7ab96520de3a18e5e111b5eaab095312d7fe84UNION ALLSELECT"evt_block_time","from",- cast("value" as int256) AS stethFROMerc20_ethereum.evt_TransferWHERE"from" = 0x828b154032950c8ff7cf8085d841723db2696056AND "contract_address" = 0xae7ab96520de3a18e5e111b5eaab095312d7fe84) AS sGROUP BY1),weth AS (SELECTDATE_TRUNC('day', evt_block_time) AS time,SUM(weth) / CAST(1e18 AS DOUBLE) AS wethFROM(SELECT"evt_block_time","from",cast("value" as int256) AS wethFROMerc20_ethereum.evt_TransferWHERE"to" = 0x828b154032950c8ff7cf8085d841723db2696056AND "contract_address" = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2UNION ALLSELECT"evt_block_time","from",- cast("value" as int256) AS wethFROMerc20_ethereum.evt_TransferWHERE"from" = 0x828b154032950c8ff7cf8085d841723db2696056AND "contract_address" = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) AS w