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].SELECTprovider AS address,SUM("token_amounts" [2] / CAST(1e18 AS DOUBLE)) AS eth_removedFROMcurvefi_ethereum.steth_swap_evt_RemoveLiquidityWHEREDATE_TRUNC('day', evt_block_time) > CURRENT_TIMESTAMP - INTERVAL '2' dayGROUP BY1UNION ALL(SELECTprovider AS address,SUM("token_amounts" [2] / CAST(1e18 AS DOUBLE)) AS eth_removedFROMcurvefi_ethereum.steth_swap_evt_RemoveLiquidityImbalanceWHEREDATE_TRUNC('day', evt_block_time) > CURRENT_TIMESTAMP - INTERVAL '2' dayGROUP BY1)UNION ALL(SELECTprovider AS address,SUM("token_amount" / CAST(1e18 AS DOUBLE)) AS eth_removedFROMcurvefi_ethereum.steth_swap_evt_RemoveLiquidityOneWHEREDATE_TRUNC('day', evt_block_time) > CURRENT_TIMESTAMP - INTERVAL '2' dayAND NOT "evt_tx_hash" IN (SELECT"evt_tx_hash"FROMerc20_ethereum.evt_TransferWHERE"contract_address" = 0xae7ab96520de3a18e5e111b5eaab095312d7fe84AND "from" = 0xdc24316b9ae028f1497c275eb9192a3ea0f67022)GROUP BY1)UNION ALL(SELECT"buyer" AS address,SUM("tokens_bought" / CAST(1e18 AS DOUBLE)) AS eth_removed_exFROMcurvefi_ethereum.steth_swap_evt_TokenExchangeWHEREDATE_TRUNC('day', evt_block_time) > CURRENT_TIMESTAMP - INTERVAL '2' dayAND sold_id = cast(1 as int256)GROUP BY1)ORDER BY