Skip to content

Commit

Permalink
yo
Browse files Browse the repository at this point in the history
  • Loading branch information
roy-dydx committed Mar 26, 2024
1 parent 4c09cf0 commit fef43ea
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion protocol/app/ante.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
package app

import (
"sync"

errorsmod "cosmossdk.io/errors"
"cosmossdk.io/store/cachemulti"
storetypes "cosmossdk.io/store/types"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/telemetry"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/auth/ante"
authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing"
"sync"

customante "github.com/dydxprotocol/v4-chain/protocol/app/ante"
libante "github.com/dydxprotocol/v4-chain/protocol/lib/ante"
"github.com/dydxprotocol/v4-chain/protocol/lib/metrics"
clobante "github.com/dydxprotocol/v4-chain/protocol/x/clob/ante"
clobtypes "github.com/dydxprotocol/v4-chain/protocol/x/clob/types"
)
Expand Down Expand Up @@ -229,6 +232,12 @@ func (h *lockingAnteHandler) clobAnteHandle(ctx sdk.Context, tx sdk.Tx, simulate
defer h.globalLock.Unlock()
}

telemetry.IncrCounter(
1,
"roy_clob_tx",
metrics.Count,
)

if ctx, err = h.clobRateLimit.AnteHandle(ctx, tx, simulate, noOpAnteHandle); err != nil {
return ctx, err
}
Expand Down

0 comments on commit fef43ea

Please sign in to comment.