Skip to content

Commit

Permalink
Log order id and good til block of rejected st orders. (backport #1858)…
Browse files Browse the repository at this point in the history
… (#1860)

Co-authored-by: vincentwschau <[email protected]>
  • Loading branch information
mergify[bot] and vincentwschau authored Jul 5, 2024
1 parent c257bd6 commit db74e24
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 db74e24

Please sign in to comment.