Skip to content

Commit

Permalink
Log order id and good til block of rejected st orders. (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwschau authored Jul 5, 2024
1 parent e8cf1f3 commit 692910f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions protocol/x/clob/ante/clob.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import (

var (
timeoutHeightLogKey = "TimeoutHeight"
orderIdLogKey = "OrderId"
goodTilBlockLogKey = "GoodTilBlock"
)

// ClobDecorator is an AnteDecorator which is responsible for:
Expand Down Expand Up @@ -118,6 +120,10 @@ func (cd ClobDecorator) AnteHandle(
"Rejected short-term place order with non-zero timeout height < goodTilBlock",
timeoutHeightLogKey,
timeoutHeight,
orderIdLogKey,
msg.Order.OrderId,
goodTilBlockLogKey,
msg.Order.GetGoodTilBlock(),
)
return ctx, errorsmod.Wrap(
sdkerrors.ErrInvalidRequest,
Expand Down

0 comments on commit 692910f

Please sign in to comment.