From 04651019fea6dddef7c938863864f06a674df2d8 Mon Sep 17 00:00:00 2001 From: Teddy Ding Date: Thu, 3 Oct 2024 14:28:15 -0400 Subject: [PATCH] Add commentt --- protocol/x/clob/keeper/clob_pair.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/protocol/x/clob/keeper/clob_pair.go b/protocol/x/clob/keeper/clob_pair.go index 65f2e5fee4..cc1cd449d6 100644 --- a/protocol/x/clob/keeper/clob_pair.go +++ b/protocol/x/clob/keeper/clob_pair.go @@ -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,