Skip to content

Rename max_supply to token_supply for faucet accounts in preparation for upcoming token standards #2272

@onurinanc

Description

@onurinanc

Within token standards, max_supply and token_supply represent different concepts:

  • token_supply: the current issued supply of the token.
  • max_supply: the maximum cap the supply can ever reach.

At the moment, we are using max_supply to represent the token’s current supply, which is semantically incorrect relative to the standards we want to align with.

As a first step towards the token standards, rename max_supplytoken_supply across the codebase and public interfaces.

Not for the next step but for the future work:
We will introduce a new max_supply field that correctly expresses the upper cap of supply. This cap will be enforced through minting flows, representing the maximum supply that can be reached via mint operations.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions