-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enhance max_supply logic for Jetton supply management (#24)
### PR Summary: Update `max_supply` Attribute in Jetton Implementation This PR updates the handling of the `max_supply` attribute to improve flexibility and enforce stricter rules. #### Key Changes: 1. **Optional `max_supply`**: - `max_supply` can be `0` to indicate unlimited supply. 2. **Minting Rules**: - Minting stops when `max_supply` is reached (if not `0`). - Unlimited minting allowed if `max_supply` is `0`. 3. **Update Restrictions**: - `max_supply` can only be set to `0` during initialization (`JettonInit`). - `max_supply` can only be increased via `JettonSetParameter`. 4. **Tests**: - Added basic tests to verify minting behavior and `max_supply` constraints. --------- Co-authored-by: Suprun <[email protected]>
- Loading branch information
Showing
4 changed files
with
359 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.