diff --git a/x/exchange/keeper/fulfillment.go b/x/exchange/keeper/fulfillment.go index d5d249542..f519770de 100644 --- a/x/exchange/keeper/fulfillment.go +++ b/x/exchange/keeper/fulfillment.go @@ -346,7 +346,7 @@ func (k Keeper) recordNAVs(ctx sdk.Context, marketID uint32, navs []exchange.Net k.emitEvent(ctx, &metadatatypes.EventSetNetAssetValue{ ScopeId: strings.TrimPrefix(nav.Assets.Denom, metadatatypes.DenomPrefix), Price: nav.Price.String(), - // Volume: nav.Assets.Amount.String(), TODO[2137]: Uncomment once https://github.com/provenance-io/provenance/pull/2160 has merged. + // Volume: nav.Assets.Amount.String(), TODO[2160]: Uncomment once https://github.com/provenance-io/provenance/pull/2160 has merged. Source: source, }) } else { @@ -366,7 +366,7 @@ func (k Keeper) recordNAVs(ctx sdk.Context, marketID uint32, navs []exchange.Net } metadataNAV := metadatatypes.NetAssetValue{ Price: nav.Price, - // Volume: nav.Assets.Amount.Uint64(), TODO[2137]: Uncomment once https://github.com/provenance-io/provenance/pull/2160 has merged. + // Volume: nav.Assets.Amount.Uint64(), TODO[2160]: Uncomment once https://github.com/provenance-io/provenance/pull/2160 has merged. } metadataNAVs[nav.Assets.Denom] = append(metadataNAVs[nav.Assets.Denom], metadataNAV) } else { @@ -441,7 +441,7 @@ func (k Keeper) emitMetadataNAVEvents(ctx sdk.Context, denom string, navs []meta ScopeId: denom, Price: nav.Price.String(), Source: source, - // TODO[2153]: Add Volume once https://github.com/provenance-io/provenance/pull/2160 has merged. + // TODO[2160]: Add Volume once https://github.com/provenance-io/provenance/pull/2160 has merged. } } k.emitEvents(ctx, events) @@ -456,7 +456,7 @@ func (k Keeper) GetNav(ctx sdk.Context, assetsDenom, priceDenom string) *exchang return nil } return &exchange.NetAssetPrice{ - Assets: sdk.Coin{Denom: assetsDenom, Amount: sdkmath.NewIntFromUint64(1)}, // TODO[2137]: Switch to nav.Volume once https://github.com/provenance-io/provenance/pull/2160 has merged. + Assets: sdk.Coin{Denom: assetsDenom, Amount: sdkmath.NewIntFromUint64(1)}, // TODO[2160]: Switch to nav.Volume once https://github.com/provenance-io/provenance/pull/2160 has merged. Price: nav.Price, } } diff --git a/x/metadata/keeper/scope_test.go b/x/metadata/keeper/scope_test.go index 2d58b9bac..d569865ea 100644 --- a/x/metadata/keeper/scope_test.go +++ b/x/metadata/keeper/scope_test.go @@ -3314,7 +3314,7 @@ func (s *ScopeKeeperTestSuite) TestGetNetAssetValue() { priceDenomOK := "aokay" okNAV := types.NetAssetValue{ Price: sdk.NewInt64Coin(priceDenomOK, 987_123_654), - // TODO[2153]: Add Volume once https://github.com/provenance-io/provenance/pull/2160 has merged. + // TODO[2160]: Add Volume once https://github.com/provenance-io/provenance/pull/2160 has merged. } setupStore := func() { @@ -3381,7 +3381,7 @@ func (s *ScopeKeeperTestSuite) TestGetNetAssetValue() { if !s.Assert().Equal(tc.expNAV, actNAV, "NAV returned from GetNetAssetValue") && tc.expNAV != nil && actNAV != nil { s.Assert().Equal(tc.expNAV.Price.String(), actNAV.Price.String(), "NAV.Price (string)") s.Assert().Equal(fmt.Sprintf("%d", tc.expNAV.UpdatedBlockHeight), fmt.Sprintf("%d", actNAV.UpdatedBlockHeight), "UpdatedBlockHeight (string)") - // TODO[2153]: Add Volume once https://github.com/provenance-io/provenance/pull/2160 has merged. + // TODO[2160]: Add Volume once https://github.com/provenance-io/provenance/pull/2160 has merged. } }) }