Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix acceptance of neg amounts in mint-lock example #296

Merged
merged 2 commits into from
Jan 17, 2024
Merged

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Jan 16, 2024

What

Disallow minting with negative amounts in the mint-lock example.

Why

There isn't really a good reason to generically support minting with negative amounts. Due to the tracking of the limit inside the mint-lock contract it isn't well defined or obvious what the limits behavior should be with negative mints. For example, should it reduce the limit consumed, or keep it as it is. For the most part token mint functions usually don't support minting negative amounts.

Close #295

@leighmcculloch leighmcculloch merged commit 92b4335 into main Jan 17, 2024
106 checks passed
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.

mint-lock contract allows minters to bypass their epoch limit.
2 participants