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

Implement "Set Max Supply" ACTION #125

Closed
Tracked by #128 ...
DenisCarriere opened this issue Mar 31, 2024 · 1 comment
Closed
Tracked by #128 ...

Implement "Set Max Supply" ACTION #125

DenisCarriere opened this issue Mar 31, 2024 · 1 comment
Labels

Comments

@DenisCarriere
Copy link
Contributor

Purpose

Create setmaxsupply ACTION where the token issuer can set the maximum supply of the token.

Feedback provided by

setmaxupply ACTION

/**
 * Set the maximum supply of the token.
 *
 * @param issuer - the issuer account setting the maximum supply.
 * @param maximum_supply - the maximum supply of the token.
 */
[[eosio::action]]
void setmaxsupply( const name& issuer, const asset& maximum_supply );

Preconditions

  • require_auth(issuer)
  • maximum_supply must match the symbol of the token.
  • maximum_supply must be greater than the current supply.

References

Note: changes should be pushed to Antelope Reference contracts https://github.com/AntelopeIO/reference-contracts

DenisCarriere added a commit to AntelopeIO/reference-contracts that referenced this issue Apr 8, 2024
@DenisCarriere
Copy link
Contributor Author

Implemented via: AntelopeIO/reference-contracts@a451ca4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

2 participants