We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7ed4c2 commit c8beeeaCopy full SHA for c8beeea
mempool/dydx_helpers.go
@@ -9,7 +9,7 @@ import (
9
10
// IsShortTermClobOrderTransaction returns true if the provided `tx` is a
11
// Cosmos transaction containing a short-term `MsgPlaceOrder` or
12
-// short-term `MsgCancelOrder` message.
+// short-term `MsgCancelOrder` or `MsgBatchCancel` message.
13
func IsShortTermClobOrderTransaction(
14
tx types.Tx,
15
mempoolLogger log.Logger,
@@ -44,6 +44,10 @@ func IsShortTermClobOrderTransaction(
44
}
45
return msgCancelOrder.OrderId.IsShortTermOrder()
46
47
+ if cosmosTx.Body.Messages[0].TypeUrl == "/dydxprotocol.clob.MsgBatchCancel" {
48
+ // MsgBatchCancel only processes short term order cancellations as of right now.
49
+ return true
50
+ }
51
52
53
return false
0 commit comments