Skip to content

Conversation

@leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Jan 27, 2026

What

  • Clarify that a clawback is a type of burn that reduces the holder's balance and total supply, and that no separate burn or transfer event is emitted alongside the clawback event.
  • Clarify that a mint increases total supply and the balance of the recipient.
  • State that implementations must increase total supply on mint and reduce it on clawback.

Why

The semantics of clawback were ambiguous — it was unclear whether clawback burns tokens or could transfer them, and whether a separate burn event should accompany the clawback event. 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

@leighmcculloch leighmcculloch changed the title Clarify mint and clawback effects on total supply SEP-41: Clarify mint and clawback effects on total supply Jan 27, 2026
@leighmcculloch leighmcculloch marked this pull request as ready for review January 27, 2026 15:01
Copilot AI review requested due to automatic review settings January 27, 2026 15:01
Copy link
Contributor

Copilot AI left a 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 mint increases total supply and recipient balance
  • Added clarification that clawback is 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.

`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
Copy link

Copilot AI Jan 27, 2026

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".

Suggested change
While implementations have this flexibility to how mint and clawback are
While implementations have this flexibility in how mint and clawback are

Copilot uses AI. Check for mistakes.
`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,
Copy link

Copilot AI Jan 27, 2026

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".

Suggested change
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,

Copilot uses AI. Check for mistakes.
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