diff --git a/crates/orderbook/src/solvable_orders.rs b/crates/orderbook/src/solvable_orders.rs index 4c1191704e..01653dc06a 100644 --- a/crates/orderbook/src/solvable_orders.rs +++ b/crates/orderbook/src/solvable_orders.rs @@ -251,6 +251,8 @@ fn solvable_orders(mut orders: Vec, balances: &Balances) -> Vec { // that we first need a way to communicate this to the solver. We could repurpose // availableBalance for this. let needed_balance = match max_transfer_out_amount(&order) { + // Should only every happen if a partially fillable order has been filled completely + Ok(balance) if balance.is_zero() => continue, Ok(balance) => balance, Err(err) => { // This should only happen if we read bogus order data from