mirror of
https://github.com/payden/libwsclient
synced 2025-06-13 12:53:52 +00:00
11 lines
421 B
Rust
11 lines
421 B
Rust
use crate::models::market_conditions::MarketConditions;
|
|
use crate::models::mev_opportunity::MevOpportunity;
|
|
use async_trait::async_trait;
|
|
use solana_sdk::pubkey::Pubkey;
|
|
use std::collections::HashMap;
|
|
|
|
#[async_trait]
|
|
pub trait Strategy {
|
|
fn update(&mut self, market_conditions: &MarketConditions);
|
|
async fn find_opportunities(&self, target_accounts: &HashMap<Pubkey, crate::AccountInfo>) -> Vec<MevOpportunity>;
|
|
} |