diff --git a/protocol/lib/metrics/constants.go b/protocol/lib/metrics/constants.go index 0f3505ae3e..ae09e0217f 100644 --- a/protocol/lib/metrics/constants.go +++ b/protocol/lib/metrics/constants.go @@ -249,6 +249,7 @@ const ( VaultCancelOrder = "vault_cancel_order" VaultPlaceOrder = "vault_place_order" VaultPlaceOrderDifferentPrice = "vault_place_order_different_price" + VaultPlaceOrderSamePrice = "vault_place_order_same_price" VaultType = "vault_type" VaultId = "vault_id" VaultEquity = "vault_equity" diff --git a/protocol/x/vault/keeper/orders.go b/protocol/x/vault/keeper/orders.go index 02295295b8..8f3f70abe4 100644 --- a/protocol/x/vault/keeper/orders.go +++ b/protocol/x/vault/keeper/orders.go @@ -147,6 +147,9 @@ func (k Keeper) RefreshVaultClobOrders(ctx sdk.Context, vaultId types.VaultId) ( ), ) } else { + vaultId.IncrCounter( + metrics.VaultPlaceOrderDifferentPrice, + ) k.GetIndexerEventManager().AddTxnEvent( ctx, indexerevents.SubtypeStatefulOrder,