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

Extension: Redeem/Burn Functionality #14

Open
4 tasks
HDauven opened this issue Jan 8, 2025 · 0 comments
Open
4 tasks

Extension: Redeem/Burn Functionality #14

HDauven opened this issue Jan 8, 2025 · 0 comments

Comments

@HDauven
Copy link
Member

HDauven commented Jan 8, 2025

Summary

Allow the contract owner to burn/redeem tokens from their balance to reduce the total supply.

Acceptance Criteria

  • Implement a burn function callable only by the owner.
  • Burning fails if: The caller does not have the owner and the caller's balance is lower than the to burn amount.
  • Updates the total supply and decreases caller's balance.
  • Emit a Redeem event with the correctly burned amount.

To Investigate

Should only the owner be able to call the function or not?

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

No branches or pull requests

1 participant