diff --git a/programs/drift/src/math/orders.rs b/programs/drift/src/math/orders.rs index 9b0a9c1dc5..3ec1908900 100644 --- a/programs/drift/src/math/orders.rs +++ b/programs/drift/src/math/orders.rs @@ -965,7 +965,7 @@ pub fn calculate_max_perp_order_size( let mut order_size = 0_u64; let mut updated_margin_ratio = margin_ratio; - for _ in 0..6 { + for _ in 0..7 { let (new_order_size, new_margin_ratio) = calculate_order_size_and_margin_ratio(updated_margin_ratio)?; order_size = new_order_size;