-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Location: contracts/lottery
Labels: smart-contract, soroban, good first issue
Estimated Time: 7 hours
Difficulty: Medium
Description
Create a lottery/raffle system where players buy tickets with tokens for a chance to win NFTs and token prizes.
Tasks
- Design lottery round data structure
- Implement ticket purchase with token payment
- Create verifiable random number generation (VRF)
- Add winner selection algorithm
- Implement prize pool accumulation
- Create automatic round scheduling
- Add prize distribution to winners
- Write lottery flow tests
- Implement ticket refunds for cancelled rounds
- Add lottery history tracking
Acceptance Criteria
- Tickets purchased with tokens correctly
- Random selection fair and verifiable
- Winners selected accurately
- Prizes distributed automatically
- Round scheduling works
- Contract deployed to testnet
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program