This particular implementation spawns thousands of threads for concurrent processing thanks to tokio
. Techincally, amount of threads per iteration equals:
threads_n = markets.len() * obligations.len()
-
Install Solana CLI tools, Rust.
-
Create liquidator keypair. Currently hardcoded to relative path
./solend-liquidator/private/liquidator_main.json
. Run in the root directory of the project.
solana-keygen new -o ./solend-liquidator/private/liquidator_main.json
- To run test iteration. Run in the root directory of the project:
cd ./solend-liquidator
cargo test -- --nocapture
- To run actual eternal liquidator.
cd ./solend-liquidator
cargo run --release