-
Notifications
You must be signed in to change notification settings - Fork 353
SEP-41: Clarify mint and clawback effects on total supply #1859
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR clarifies the semantics of mint and clawback events in the SEP-41 Soroban Token Interface, making explicit that clawback burns tokens (reducing total supply and holder balance) and that no separate burn or transfer event accompanies a clawback event.
Changes:
- Added clarification that
mintincreases total supply and recipient balance - Added clarification that
clawbackis a type of burn that reduces both holder balance and total supply - Added requirement that implementations must increase total supply on mint and reduce it on clawback
- Updated version from 0.4.0 to 0.4.1 and added corresponding changelog entry
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ecosystem/sep-0041.md
Outdated
| `mint`/`clawback` a new custom token. The only requirement is for `mint` and | ||
| `clawback` events to be emitted during minting and clawback actions. | ||
|
|
||
| While implementations have this flexibility to how mint and clawback are |
Copilot
AI
Jan 27, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar issue: "flexibility to how" should be "flexibility in how" or "flexibility regarding how".
| While implementations have this flexibility to how mint and clawback are | |
| While implementations have this flexibility in how mint and clawback are |
ecosystem/sep-0041.md
Outdated
| `clawback` events to be emitted during minting and clawback actions. | ||
|
|
||
| While implementations have this flexibility to how mint and clawback are | ||
| initiated, a mint action that emits an mint event must increase total supply, |
Copilot
AI
Jan 27, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar issue: "a mint action that emits an mint event" contains an incorrect article. Should be "a mint event" instead of "an mint event".
| initiated, a mint action that emits an mint event must increase total supply, | |
| initiated, a mint action that emits a mint event must increase total supply, |
What
burnortransferevent is emitted alongside theclawbackevent.Why
The semantics of
clawbackwere ambiguous — it was unclear whether clawback burns tokens or could transfer them, and whether a separateburnevent should accompany theclawbackevent. This was raised in #1858 (reply in thread). This change makes the behavior explicit and consistent with the Stellar Asset Contract.Thanks to @orbitlens for identifying the gap.
Close #1858