From de7ff789a363e70d37f388bf3729d98276996916 Mon Sep 17 00:00:00 2001 From: publicqi Date: Mon, 3 Jun 2024 12:35:51 -0700 Subject: [PATCH] remove uniswap router as targets --- src/evm/mod.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/evm/mod.rs b/src/evm/mod.rs index 2c245925..4f189615 100644 --- a/src/evm/mod.rs +++ b/src/evm/mod.rs @@ -741,19 +741,6 @@ pub fn evm_main(mut args: EvmArgs) { } let mut args_target = args.target.clone(); - if oracle_types.contains(&OracleType::ERC20) || args.flashloan { - const ETH_ADDRESS: &str = "0x7a250d5630b4cf539739df2c5dacb4c659f2488d"; - const BSC_ADDRESS: &str = "0x10ed43c718714eb63d5aa57b78b54704e256024e"; - if "bsc" == onchain.as_ref().unwrap().chain_name { - if !args_target.contains(BSC_ADDRESS) { - args_target.push(','); - args_target.push_str(BSC_ADDRESS); - } - } else if "eth" == onchain.as_ref().unwrap().chain_name && !args_target.contains(ETH_ADDRESS) { - args_target.push(','); - args_target.push_str(ETH_ADDRESS); - } - } let addresses: Vec = args_target .split(',') .map(|s| EVMAddress::from_str(s).unwrap())