https://github.com/dennohpeter/strategy
A framework for writing MEV strategies and bots in Rust
https://github.com/dennohpeter/strategy
blockchain ethereum mev strategy trading
Last synced: about 1 month ago
JSON representation
A framework for writing MEV strategies and bots in Rust
- Host: GitHub
- URL: https://github.com/dennohpeter/strategy
- Owner: dennohpeter
- License: mit
- Created: 2023-09-08T17:27:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-08T17:46:04.000Z (over 1 year ago)
- Last Synced: 2025-04-05T03:56:39.450Z (about 2 months ago)
- Topics: blockchain, ethereum, mev, strategy, trading
- Language: Rust
- Homepage: https://crates.io/crates/strategy
- Size: 29.3 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Strategy
[](https://github.com/dennohpeter/strategy/actions/workflows/general.yml)
[](https://github.com/dennohpeter/strategy/actions/workflows/audit.yml)
[](./LICENSE)
[](https://crates.io/crates/strategy)### About
A framework for writing MEV strategies and bots in Rust
### Install
`Cargo.toml`
```toml
[dependencies]
strategy = { version = "0.1.1" }
```### Usage
`strategy.rs`
```rust
use strategy::types::Strategy, Event, Action};
pub struct Sandwicher {
provider: Arc
}impl Sandwicher {
pub fn new(provider: Arc) -> Self {
Self {
provider
}
}
}#[async_trait]
impl Strategy for Sandwicher {
async fn process_event(&mut self, event: Event) -> Option {// Process incoming event/tx
None
}
}
```