Overview of Degenbot Architecture
mainDegenbot is a high-performance MEV-bot framework consisting of a Rust core and a Python driver shell.
- Rust Core: Contains all performance-critical logic, including pool/token state, swap math, event decoding, solvers, and the pump loop. It is designed to be standalone; a pure-Rust developer can use it by running
cargo add degenbot. - Python Driver: Provides a user-facing API, orchestration, and configuration management. It uses a thin PyO3 layer to translate Python calls into Rust calls without containing business logic itself.
This split ensures that all heavy lifting (math and state machines) is handled by Rust, while Python provides an ergonomic interface for bot orchestration.