-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ASI supply replacement #347
feat: ASI supply replacement #347
Conversation
… feat/asi-supply-replacement # Conflicts: # cmd/fetchd/cmd/genesis-asi-upgrade.go
curSupplyCoin := sdk.NewCoin(denomInfo.NewDenom, curSupply) | ||
|
||
// add new coins to the current supply | ||
newSupplyCoins := additionalSupplyCoin.Add(curSupplyCoin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for consistency with add operation in line below, it would be better to swap operands in add operator:
newSupplyCoins := additionalSupplyCoin.Add(curSupplyCoin) | |
newSupplyCoins := curSupplyCoin.Add(additionalSupplyCoin) |
@@ -50,6 +50,10 @@ var networkInfos = map[string]NetworkConfig{ | |||
NewDenom: "aasi", | |||
OldDenom: "afet", | |||
}, | |||
SupplyInfo: SupplyInfo{ | |||
AdditionalSupplyValue: "100000000000000000000000000", // TODO(JS): likely amend this | |||
UpdatedSupplyOverflowAddr: "fetch15p3rl5aavw9rtu86tna5lgxfkz67zzr6ed4yhw", // TODO(JS): likely amend this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible, I would suggest to use different term overflow
, something like:
UpdatedSupplyOverflowAddr: "fetch15p3rl5aavw9rtu86tna5lgxfkz67zzr6ed4yhw", // TODO(JS): likely amend this | |
DestinationWalletForNewlyMintedSupply: "fetch15p3rl5aavw9rtu86tna5lgxfkz67zzr6ed4yhw", // TODO(JS): likely amend this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this renaming would be done, it will have fallout effect on all places where the same naming convention was used.
@@ -50,6 +50,10 @@ var networkInfos = map[string]NetworkConfig{ | |||
NewDenom: "aasi", | |||
OldDenom: "afet", | |||
}, | |||
SupplyInfo: SupplyInfo{ | |||
AdditionalSupplyValue: "100000000000000000000000000", // TODO(JS): likely amend this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NewSupplyToMint
… feat/asi-supply-replacement
additionalSupplyValue
to a hard-coded overflow address