-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week
Description
Overview
Implement a comprehensive wager system for the WagerMultiPlayer
mode where players must stake tokens to participate in rounds, with the winner taking the entire prize pool.
Requirements
- Wager Validation: Players must have sufficient balance before creating/joining wager rounds.
- Automatic Transfer: Transfer wager amounts to contract upon round creation/joining.
- Prize Distribution: Winner receives the entire prize pool when round completes.
- Amount Tracking: Comprehensive tracking of all wager-related amounts.
User Flow
- Round Creation: Creator specifies wager amount when creating
WagerMultiPlayer
round. - Balance Check: System validates creator has sufficient balance and transfers wager to contract.
- Joining: Other players join and their wager is automatically transferred upon joining.
- Round Completion: Winner is determined and receives prize pool.
Implementation Notes
The specific technical implementation method and architecture decisions are left to the discretion of the assigned developer. You have full creative freedom to choose the most appropriate approach based on your expertise and the existing codebase structure. If you have any questions, need clarification on requirements, want to discuss technical approaches, or encounter any blockers during implementation, please feel free to reach out to me directly.
Acceptance Criteria
- Wager transfer logic working correctly
- Prize distribution functional
- Comprehensive test suite
- All edge cases handled gracefully
- All functionality work as expected
Metadata
Metadata
Assignees
Labels
onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week