This project is a solver engine that interfaces with several Decentralized Exchanges (DEXes), including Balancer, 0x, OneInch, and ParaSwap. The specific DEX solver that is instantiated depends on the command line argument provided when initiating the project.
To build and run this project, you will need:
- Rust. It's recommended to use the stable branch.
-
Build the project by running:
cargo build --release
This command will create an executable
solversin the./target/releasedirectory. -
Run the project with the following command:
solvers <solver_name> --config <config_path>
Replace
<solver_name>with the necessary solver you want to run:zeroexbalanceroneinchparaswap
<config_path>is the path to the corresponding solver's config. Examples for each solver can be found in the./configdirectory.