Skip to content

0xCactus/solend-liquidator

 
 

Repository files navigation

Rust implementation of solend-liquidator

Overview

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()

Usage

  1. Install Solana CLI tools, Rust.

  2. 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
  1. To run test iteration. Run in the root directory of the project:
cd ./solend-liquidator
cargo test -- --nocapture
  1. To run actual eternal liquidator.
cd ./solend-liquidator
cargo run --release

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 69.7%
  • TypeScript 19.2%
  • JavaScript 9.4%
  • Shell 1.1%
  • CSS 0.5%
  • Makefile 0.1%