Skip to content

Prize Lottery and Raffle Contract #37

@Mkalbani

Description

@Mkalbani

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 program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions