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].SELECTtime,SUM(eth_removed) AS eth_removed,SUM(eth_removed_count) AS eth_removed_countFROM(SELECTDATE_TRUNC('day', evt_block_time) AS time,SUM("token_amounts" [2] / CAST(1e18 AS DOUBLE)) AS eth_removed,COUNT(*) AS eth_removed_countFROMcurvefi_ethereum.steth_swap_evt_RemoveLiquidityWHEREDATE_TRUNC('day', evt_block_time) > CURRENT_TIMESTAMP - INTERVAL '7' dayGROUP BY1UNION ALL(SELECTDATE_TRUNC('day', evt_block_time) AS time,SUM("token_amounts" [2] / CAST(1e18 AS DOUBLE)) AS eth_removed,COUNT(*) AS eth_removed_countFROMcurvefi_ethereum.steth_swap_evt_RemoveLiquidityImbalanceWHEREDATE_TRUNC('day', evt_block_time) > CURRENT_TIMESTAMP - INTERVAL '7' dayGROUP BY1)UNION ALL(SELECTDATE_TRUNC('day', evt_block_time) AS time,SUM("token_amount" / CAST(1e18 AS DOUBLE)) AS eth_removed,COUNT(*) AS eth_removed_countFROMcurvefi_ethereum.steth_swap_evt_RemoveLiquidityOneWHEREDATE_TRUNC('day', evt_block_time) > CURRENT_TIMESTAMP - INTERVAL '7' dayAND NOT "evt_tx_hash" IN (SELECT"evt_tx_hash"FROMerc20_ethereum.evt_TransferWHERE"contract_address" = 0xae7ab96520de3a18e5e111b5eaab095312d7fe84AND "from" = 0xdc24316b9ae028f1497c275eb9192a3ea0f67022)GROUP BY1)UNION ALL(SELECTDATE_TRUNC('day', evt_block_time) AS time,SUM("tokens_bought" / CAST(1e18 AS DOUBLE)) AS eth_removed,