Skip to content

Implement Timeout-Based Wager Reclaim #145

@popsman01

Description

@popsman01

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

  • Run tests
  • Cover edge cases
  • Include test output and safety notes

Guidelines

  • Assignment required before starting
  • PR description must include: Closes #145

Metadata

Metadata

Assignees

No one assigned

    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