Skip to content

Commit

Permalink
change func name
Browse files Browse the repository at this point in the history
Signed-off-by: Shrenuj Bansal <[email protected]>
  • Loading branch information
shrenujb committed Sep 25, 2024
1 parent f82e1a6 commit ab9aebd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions protocol/x/clob/keeper/clob_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion protocol/x/listing/keeper/listing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion protocol/x/listing/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit ab9aebd

Please sign in to comment.