diff --git a/mempool/dydx_helpers.go b/mempool/dydx_helpers.go index 5e22d9aac66..0b284880196 100644 --- a/mempool/dydx_helpers.go +++ b/mempool/dydx_helpers.go @@ -9,7 +9,7 @@ import ( // IsShortTermClobOrderTransaction returns true if the provided `tx` is a // Cosmos transaction containing a short-term `MsgPlaceOrder` or -// short-term `MsgCancelOrder` message. +// short-term `MsgCancelOrder` or `MsgBatchCancel` message. func IsShortTermClobOrderTransaction( tx types.Tx, mempoolLogger log.Logger, @@ -44,6 +44,10 @@ func IsShortTermClobOrderTransaction( } return msgCancelOrder.OrderId.IsShortTermOrder() } + if cosmosTx.Body.Messages[0].TypeUrl == "/dydxprotocol.clob.MsgBatchCancel" { + // MsgBatchCancel only processes short term order cancellations as of right now. + return true + } } return false