Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

This is the Raffles sacred text it functions like this and contract reflects that i had the wrong one earlier my bad (but it was still a butchered version was not automated ) I hope this helps.

The contract starts with 50 available tickets for sale. Participants buy tickets at the specified price in wSOL. Once all 50 tickets are sold, the contract automatically closes the current raffle and selects a winner. The contract pays out the prize amount (which is half of the total accumulated amount in this case, so $100) to the winner and transfers the remaining balance to the contract owner. After closing the current raffle, the contract automatically starts the next raffle, resetting the ticket count and initiating the process anew. This cycle continues, with the contract automatically handling the sale of tickets, selection of winners, and distribution of prizes. It operates autonomously according to the rules and conditions set within the contract.

About

Solanacorn raffle

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors