mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 09:09:19 +08:00
BUG: Fix early exit from fixed slippage when a order amount is zero.
The order loop should continue, effectively dropping/skipping the zero amount order, not return early and erroneously skip possible valid orders.
This commit is contained in:
@@ -224,7 +224,7 @@ class FixedSlippage(SlippageModel):
|
||||
continue
|
||||
|
||||
if zp_math.tolerant_equals(order.amount, 0):
|
||||
return txns
|
||||
continue
|
||||
|
||||
txn = create_transaction(
|
||||
event,
|
||||
|
||||
Reference in New Issue
Block a user