Skip to content

Commit

Permalink
update denom metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
boojamya committed Aug 21, 2023
1 parent 56968f6 commit 673ee04
Showing 1 changed file with 36 additions and 9 deletions.
45 changes: 36 additions & 9 deletions app/upgrades/neon/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,48 @@ func initialFiatTokenFactoryState() fiattokenfactorytypes.GenesisState {
}

var (
denomMetadataUsdc = banktypes.Metadata{

Description: "USD Coin",
Name: "usdc",
Base: "uusdc",
// denomMetadataUsdc = banktypes.Metadata{

// Description: "USD Coin",
// Name: "usdc",
// Base: "uusdc",
// DenomUnits: []*banktypes.DenomUnit{
// {
// Denom: "uusdc",
// Aliases: []string{
// "microusdc",
// },
// Exponent: 0,
// },
// {
// Denom: "usdc",
// Exponent: 6,
// },
// },
// }

denomMetadataDrachma = banktypes.Metadata{
Display: "drachma",
Base: "udrachma",
Name: "drachma",
Symbol: "DRACHMA",
DenomUnits: []*banktypes.DenomUnit{
{
Denom: "uusdc",
Denom: "udrachma",
Aliases: []string{
"microusdc",
"microdrachma",
},
Exponent: 0,
},
{
Denom: "usdc",
Denom: "mdrachma",
Aliases: []string{
"millidrachma",
},
Exponent: 3,
},
{
Denom: "drachma",
Exponent: 6,
},
},
Expand All @@ -95,7 +122,7 @@ func CreateNeonUpgradeHandler(

// NOTE: denomMetadata must be set before setting the minting denom
logger.Debug("adding usdc to bank denom metadata")
bankKeeper.SetDenomMetaData(ctx, denomMetadataUsdc)
bankKeeper.SetDenomMetaData(ctx, denomMetadataDrachma)

logger.Debug("setting fiat-tokenfactory params")
fiatTokenFactoryParams := initialFiatTokenFactoryState()
Expand Down

0 comments on commit 673ee04

Please sign in to comment.