diff --git a/protocol/x/clob/keeper/clob_pair.go b/protocol/x/clob/keeper/clob_pair.go index 8a4f4fbbc6..3b49d7c246 100644 --- a/protocol/x/clob/keeper/clob_pair.go +++ b/protocol/x/clob/keeper/clob_pair.go @@ -69,7 +69,7 @@ func (k Keeper) CreatePerpetualClobPair( // Write the `ClobPair` to state. k.SetClobPair(ctx, clobPair) - err := k.CreateClobPair(ctx, clobPair) + err := k.CreateClobPairStructures(ctx, clobPair) if err != nil { return clobPair, err } @@ -169,7 +169,7 @@ func (k Keeper) createOrderbook(ctx sdk.Context, clobPair types.ClobPair) { // These include creating the corresponding orderbook in the memclob, the mapping between // the CLOB pair and the perpetual and the indexer event. // This function returns an error if a value for the ClobPair's id already exists in state. -func (k Keeper) CreateClobPair(ctx sdk.Context, clobPair types.ClobPair) error { +func (k Keeper) CreateClobPairStructures(ctx sdk.Context, clobPair types.ClobPair) error { // Create the corresponding orderbook in the memclob. k.createOrderbook(ctx, clobPair) diff --git a/protocol/x/listing/keeper/listing.go b/protocol/x/listing/keeper/listing.go index 7dd3507535..3141933630 100644 --- a/protocol/x/listing/keeper/listing.go +++ b/protocol/x/listing/keeper/listing.go @@ -111,7 +111,7 @@ func (k Keeper) CreateClobPair( // Only create the clob pair if we are in deliver tx mode. This is to prevent populating // in memory data structures in the CLOB during simulation mode. if lib.IsDeliverTxMode(ctx) { - err := k.ClobKeeper.CreateClobPair(ctx, clobPair) + err := k.ClobKeeper.CreateClobPairStructures(ctx, clobPair) if err != nil { return 0, err } diff --git a/protocol/x/listing/types/expected_keepers.go b/protocol/x/listing/types/expected_keepers.go index 13f2463e78..d6b72ac3f9 100644 --- a/protocol/x/listing/types/expected_keepers.go +++ b/protocol/x/listing/types/expected_keepers.go @@ -34,7 +34,7 @@ type ClobKeeper interface { ) (clobtypes.ClobPair, error) AcquireNextClobPairID(ctx sdk.Context) uint32 ValidateClobPairCreation(ctx sdk.Context, clobPair *clobtypes.ClobPair) error - CreateClobPair(ctx sdk.Context, clobPair clobtypes.ClobPair) error + CreateClobPairStructures(ctx sdk.Context, clobPair clobtypes.ClobPair) error SetClobPair(ctx sdk.Context, clobPair clobtypes.ClobPair) }