Skip to content
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

Merged
merged 7 commits into from May 17, 2024

Conversation

Jonathansumner
Copy link
Member

@Jonathansumner Jonathansumner commented Apr 22, 2024

  • handles manual supply adjustment for ASI genesis conversion
  • transfers the additionalSupplyValue to a hard-coded overflow address

@Jonathansumner Jonathansumner self-assigned this Apr 22, 2024
@Jonathansumner Jonathansumner changed the title feat: asi supply replacement feat: ASI supply replacement May 16, 2024
curSupplyCoin := sdk.NewCoin(denomInfo.NewDenom, curSupply)

// add new coins to the current supply
newSupplyCoins := additionalSupplyCoin.Add(curSupplyCoin)
Copy link
Collaborator

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:

Suggested change
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
Copy link
Collaborator

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:

Suggested change
UpdatedSupplyOverflowAddr: "fetch15p3rl5aavw9rtu86tna5lgxfkz67zzr6ed4yhw", // TODO(JS): likely amend this
DestinationWalletForNewlyMintedSupply: "fetch15p3rl5aavw9rtu86tna5lgxfkz67zzr6ed4yhw", // TODO(JS): likely amend this

Copy link
Collaborator

@pbukva pbukva May 16, 2024

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NewSupplyToMint

@Jonathansumner Jonathansumner merged commit 1efe7db into feat/aasi-merger-cmd May 17, 2024
1 check passed
@Jonathansumner Jonathansumner deleted the feat/asi-supply-replacement branch May 17, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants