diff --git a/protocol/testing/e2e/gov/perpetuals_test.go b/protocol/testing/e2e/gov/perpetuals_test.go index e2ddeefcff..1252633a6a 100644 --- a/protocol/testing/e2e/gov/perpetuals_test.go +++ b/protocol/testing/e2e/gov/perpetuals_test.go @@ -1,6 +1,7 @@ package gov_test import ( + "fmt" "testing" "github.com/cometbft/cometbft/types" @@ -276,6 +277,7 @@ func TestUpdatePerpetualsParams(t *testing.T) { for i, marketId := range append(tc.genesisMarketIds, TEST_PERPETUAL_PARAMS.MarketId) { marketParamPrice := pricestest.GenerateMarketParamPrice( pricestest.WithId(marketId), + pricestest.WithPair(fmt.Sprintf("%d-%d", i, i)), ) marketParams[i] = marketParamPrice.Param marketPrices[i] = marketParamPrice.Price diff --git a/protocol/x/subaccounts/keeper/subaccount_test.go b/protocol/x/subaccounts/keeper/subaccount_test.go index 49fcaab685..699ff4ce44 100644 --- a/protocol/x/subaccounts/keeper/subaccount_test.go +++ b/protocol/x/subaccounts/keeper/subaccount_test.go @@ -2019,10 +2019,11 @@ func TestUpdateSubaccounts(t *testing.T) { ), }, marketParamPrices: []pricestypes.MarketParamPrice{ - *pricestest.GenerateMarketParamPrice(pricestest.WithId(100)), + *pricestest.GenerateMarketParamPrice(pricestest.WithId(100), pricestest.WithPair("0")), *pricestest.GenerateMarketParamPrice( pricestest.WithId(101), pricestest.WithPriceValue(0), + pricestest.WithPair("1"), ), }, perpetualPositions: []*types.PerpetualPosition{ @@ -3605,10 +3606,11 @@ func TestCanUpdateSubaccounts(t *testing.T) { ), }, marketParamPrices: []pricestypes.MarketParamPrice{ - *pricestest.GenerateMarketParamPrice(pricestest.WithId(100)), + *pricestest.GenerateMarketParamPrice(pricestest.WithId(100), pricestest.WithPair("0")), *pricestest.GenerateMarketParamPrice( pricestest.WithId(101), pricestest.WithPriceValue(0), + pricestest.WithPair("1"), ), }, perpetualPositions: []*types.PerpetualPosition{