mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-02 12:10:23 +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:
1 parent
d1968429f1
commit
fd60d775d5
1 file changed
+1
-1
@@ -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