paradigmxyz / artemis

A simple, modular, and fast framework for writing MEV bots in Rust.
Apache License 2.0
2.31k stars 442 forks source link

Update readme and fix generate strategy in cli #49

Open blacktoast opened 1 year ago

blacktoast commented 1 year ago
  1. the execution command
    cargo run -- --wss <INFURA_OR_ALCHEMY_KEY> --opensea-api-key <OPENSEA_API_KEY> --private-key <PRIVATE_KEY> --arb-contract-address <ARB_CONTRACT_ADDRESS> --bid-percentage <BID_PERCENTAGE>

    in the existing readme is not executed.

Currently, there are two folders in the bin folder, so I modified the command to test the opensea sudoswap arbitrage strategy.

  1. When you run the bin cli cargo run --bin cli -- --strategy-name <NAME>, it returns a PANIC error if the folder name already exists.

I wrote logic to create the strategy dir by checking if it is an already existing folder.

  1. Currently, the folder under strategies is named Kebab case and the folder created by the cli is Snake case, so it is not possible to run the existing opensea-sudo-arb.

First, we need to create a We changed the case to snake -> kebab so that we can run the existing strategy.