Skip to content

Implement mint cap and configurable supply ceiling with dynamic adjustment #166

@p3ris0n

Description

@p3ris0n

Summary

Add a maximum supply cap that prevents minting beyond a configured ceiling, with admin ability to adjust the cap within governance constraints.

Requirements

  • Add MaxSupply to DataKey enum
  • Modify initialize() to accept optional max_supply
  • Modify mint() to check current_supply + amount <= max_supply
  • Implement set_max_supply(new_cap)
  • Implement get_max_supply() and remaining_mintable()
  • Emit max_supply_set events
  • Add SDK methods getMaxSupply(), getRemainingMintable()

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or requesthigh-complexityHigh complexity - significant effort requiredsmart-contractRust/Soroban contract work

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions