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

Remove implicit empty candy machine test #67

Merged
merged 2 commits into from
Dec 19, 2022
Merged

Conversation

febo
Copy link
Contributor

@febo febo commented Dec 19, 2022

This PR removes the implicit candy machine empty test to prevent the bot tax to be activated if a transaction is executed after all items have been minted. In order to explicitly add the empty test, the redeemed amount guard can be used:

"redeemedAmount" : {
    "maximum": number,
}

In this case, the maximum should be set to be value of items available (e.g., 100 if there are 100 items in the candy machine). After 100 items are minted, the guard will prevent any further transactions to reach the candy machine and the bot tax will apply if the bot tax guard is enabled.

@stegaBOB stegaBOB merged commit 2bbbb01 into main Dec 19, 2022
@stegaBOB stegaBOB deleted the febo/remove-empty-check branch December 19, 2022 22:56
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.

2 participants