Skip to content

Commit

Permalink
Rename update function, add detailed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Nov 10, 2023
1 parent 541f52c commit 5e1d7ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/navs_mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import (
markertypes "github.com/provenance-io/provenance/x/marker/types"
)

func GetDenomToNav() map[string]markertypes.NetAssetValue {
// GetPioMainnet1DenomToNav are net asset values for the pio-mainnet-1 taken at blockheight 13631650
// Source: https://figure.tech/service-pricing-engine/external/api/v1/pricing/marker/new?time=2023-11-07T17:59:59.999722Z
// NOTE: These should not be ran against any other network but pio-mainnet-1
func GetPioMainnet1DenomToNav() map[string]markertypes.NetAssetValue {
return map[string]markertypes.NetAssetValue{
"pm.participation.agreement.1bcslgccejhm9v3higsx7c": markertypes.NewNetAssetValue(types.NewInt64Coin(markertypes.UsdDenom, 1037949704), 1),
"pm.participation.agreement.1cag7ztnmm4rdbbtwdrodb": markertypes.NewNetAssetValue(types.NewInt64Coin(markertypes.UsdDenom, 788900239), 1),
Expand Down
2 changes: 1 addition & 1 deletion app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ var upgrades = map[string]appUpgrade{
setupICQ(ctx, app)
updateMaxSupply(ctx, app)

addMarkerNavs(ctx, app, GetDenomToNav())
addMarkerNavs(ctx, app, GetPioMainnet1DenomToNav())

setExchangeParams(ctx, app)
updateIbcMarkerDenomMetadata(ctx, app)
Expand Down

0 comments on commit 5e1d7ef

Please sign in to comment.