/// Cap on the maximum swap slippage that is allowed. If max_spread goes over this limit, it will
/// be capped to this value.
pub const MAX_ALLOWED_SLIPPAGE: &str = "0.5";
let max_spread: Decimal256 = max_spread
    .unwrap_or(Decimal::from_str(DEFAULT_SLIPPAGE)?)
    .min(Decimal::from_str(MAX_ALLOWED_SLIPPAGE)?)
    .into();
// User input: max_spread = 0.75 (75% slippage acceptance)
// After cap: max_spread = 0.50 (50% slippage cap)
