Skip to content

ADR 004: Public mint() function in PoC token has no production removal plan #60

Closed

Description

@thiras

Category: Security

Severity: HIGH

File: adr/004-tokenomics.md (~line 82)

The PoC token contract includes a public mint(address to, uint256 amount) function callable by anyone with no supply cap. Line 29 states supply is "fixed at genesis, no post-genesis minting."

Problem:
There's no specification for how the mint() function is removed or gated when transitioning from PoC to production. If the same contract is redeployed without this change, anyone can inflate the token supply.

Recommendation:
Add a PoC→production migration checklist item: "Replace public mint with fixed-supply contract or add onlyOwner modifier with ownership renouncement after initial distribution."

ADRs affected

  • ADR 004 (Tokenomics)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:security

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions