Closed 0xJohnnyboy closed 2 years ago
Your candy machine seems to be live (public sale), so anyone can mint without a whitelist token. If you want to restrict the mint only to whitelist users before the goLiveDate
(presale), you need to set the goLiveDate
to a date in the future. Another alternative is to restrict the mint only to whitelist users, then use "presale": false
in combination with "discountPrice": null
.
Other combinations are detailed in the docs here:
Ok my bad then, once again. I think I went too fast on this (I saw "mode has been simplified" in the docs and got to the next step), and was tricked by the UI button that was still disabled without the WL token.
Totally forgot about these sections in the documentation, I'll make a PR on the docs to link this section.
Thanks for you fast reply 🙏 I'm closing
Issue description
Hi, I set up a test CM in mainnet with a whitelist mint with those settings:
The token has been created with the following instructions
We were trying out to mint with the UI we generated, and we noticed that the "remaining items" count suddenly dropped by 2.
Someone managed to mint our NFTs, without having to burn the whitelist token. Here is the Tx by the unknown minter.
Here is one of our Txs.
You can see that the 5th step starts for us with "#5.1 Burn", with the address of the WL token.
On the other transaction, there is "#5.1 Token Transfer" directly.
How is this possible ? By chance, we were only doing some tests, but did I miss something ? I suspect this is a bot scanning for new CM deployed on mainnet, but how was it able to bypass the WL token ? It paid the $USDC 2, and the NFTs are marked as "test" so no real harm here but I'm glad it didn't happen on the real ones.
Relevant log output
No response
Priority this issue should have
High (immediate attention needed)