Skip to content

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 requested a review from pbukva April 22, 2024 19:00
@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)

},
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.

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
@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.

3 participants