π«Cancel a Raffle
Sometimes a raffle does not go according to plan and you must cancel it. If you want to do this you have a short window on when you can cancel it.
Cancellation Rules
There must be less than 50% of the spots filled (calculation below)
It must still be in the pending state
You must be the one who created the raffle
Once the raffle is cancelled all of the payments for the entries will be refunded back to the users (if there is any to refund) and you will receive the NFT back to your wallet. You WILL NOT get the listing fee back when you cancel the raffle.
Half of Tickets Calculation
half_of_tickets = (spots - (spots % 2)) / 2
// The spots is the total amount of tickets available at creation
Last updated