Skip to content

Commit

Permalink
Add commentt
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyding committed Oct 3, 2024
1 parent 46c33fe commit 0465101
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protocol/x/clob/keeper/clob_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ func clobPairKey(
return lib.Uint32ToKey(id.ToUint32())
}

// (Same behavior as old `CreatePerpetualClobPair`) creates the
// objects in state and in-memory.
// This function should ONLY be used to initialize genesis state
// or test setups.
// Regular CLOB logic should use `CreatePerpetualClobPair` instead.
func (k Keeper) CreatePerpetualClobPairAndMemStructs(
ctx sdk.Context,
clobPairId uint32,
Expand Down

0 comments on commit 0465101

Please sign in to comment.