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 "Issue Fixed" ACTION #126

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

Implement "Issue Fixed" ACTION #126

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

Comments

@DenisCarriere
Copy link
Contributor

DenisCarriere commented Mar 31, 2024

Purpose

Introduce an issuefixed ACTION that enables the token issuer to allocate tokens up to a predetermined supply cap. This action will only issue the necessary quantity of tokens to bridge the gap between the existing supply and the specified cap, ensuring no excess issuance occurs.

Feedback provided by

issuefixed ACTION

 /**
  * Issues only the necessary tokens to bridge the gap between the current supply and the targeted total.
  *
  * @param to - the account to issue tokens to, it must be the same as the issuer,
  * @param supply - the target total supply for the token.
  * @param memo - the memo string that accompanies the token issue transaction.
  */
 [[eosio::action]]
 void issuefixed( const name& to, const asset& supply, const string& memo );

Preconditions

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

References

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

@DenisCarriere DenisCarriere changed the title Implement "Issue Supply" ACTION Implement "Issue Exact" ACTION Mar 31, 2024
@DenisCarriere DenisCarriere changed the title Implement "Issue Exact" ACTION Implement "Issue Fixed" ACTION Mar 31, 2024
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@477b696

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