Skip to content

Commit

Permalink
Merge pull request #500 from fuzzland/remove-uniswap-router
Browse files Browse the repository at this point in the history
remove uniswap router as targets
  • Loading branch information
publicqi authored Jun 3, 2024
2 parents 57cd350 + de7ff78 commit a620cab
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/evm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<EVMAddress> = args_target
.split(',')
.map(|s| EVMAddress::from_str(s).unwrap())
Expand Down

0 comments on commit a620cab

Please sign in to comment.