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

Token with supply #305

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

icolomina
Copy link

A contract example which is similar to the token example but the token requires a supply:

  • initialize function requires supply
  • mint decrements supply
  • Adds a supply function to query the current supply
  • burn and burn_from functions increments supply with the burned amount. Those tokens are out or the circulation after burned but they can be minted in the future.

We agreed in this pull request that it would be better to create another example instead of modifying the existing token example with the supply changes since supply may be not ideal to include on most tokens on Soroban.

@leighmcculloch
Copy link
Member

Asking a question about this here:

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.

2 participants