Skip to main content

jito_bundle/config/
tip_strategy.rs

1use crate::constants::{DEFAULT_TIP_LAMPORTS, MAX_TIP_LAMPORTS};
2
3#[derive(Debug, Clone)]
4pub enum TipStrategy {
5    Fixed(u64),
6    FetchFloor,
7    FetchFloorWithCap { min: u64, max: u64 },
8}
9
10impl Default for TipStrategy {
11    fn default() -> Self {
12        TipStrategy::FetchFloorWithCap {
13            min: DEFAULT_TIP_LAMPORTS,
14            max: MAX_TIP_LAMPORTS,
15        }
16    }
17}