Skip to content

Token with supply#305

Open
icolomina wants to merge 2 commits intostellar:mainfrom
icolomina:token_with_supply
Open

Token with supply#305
icolomina wants to merge 2 commits intostellar:mainfrom
icolomina:token_with_supply

Conversation

@icolomina
Copy link
Copy Markdown

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
Copy Markdown
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