Description
Allow players to reclaim original wagers when reveal deadlines expire while the game remains in committed state.
Motivation
This functionality is a required building block for the Tossd game flow. Without it, dependent features cannot be built or tested correctly.
Requirements and context
- Must be secure, tested, and documented
- Should be efficient and easy to review
- Primary files:
Tossd-contract/src/lib.rs
Proposed Solution
Complete the following in a focused PR off feature/timeout-reclaim:
- Implement
reclaim_wager
- Add timeout validation logic
- Document timeout assumptions and units
Technical Implementation
Files to modify:
coinflip-contract/src/lib.rs
Implementation steps:
- Implement
reclaim_wager
- Add timeout validation logic
- Document timeout assumptions and units
Branch: feature/timeout-reclaim
Example commit message
feat: implement timeout-based wager reclaim
Acceptance Criteria
Guidelines
- Assignment required before starting
- PR description must include:
Closes #145
Description
Allow players to reclaim original wagers when reveal deadlines expire while the game remains in committed state.
Motivation
This functionality is a required building block for the Tossd game flow. Without it, dependent features cannot be built or tested correctly.
Requirements and context
Tossd-contract/src/lib.rsProposed Solution
Complete the following in a focused PR off
feature/timeout-reclaim:reclaim_wagerTechnical Implementation
Files to modify:
coinflip-contract/src/lib.rsImplementation steps:
reclaim_wagerBranch:
feature/timeout-reclaimExample commit message
Acceptance Criteria
Guidelines
Closes #145