Skip to content

SC-50: Time-Locked Collateralized Wager Contract with Auto-Forfeit on Timeout #1150

Description

@chinweobtagaz

Problem Statement

In 1v1 wager matches, players who realize they are losing may refuse to resign or close their browser hoping to tie up funds indefinitely.

Proposed Solution

  1. Write a Soroban wager contract with built-in game expiration deadline.
  2. If opponent goes offline and match is not settled within deadline + buffer, allow active player to call claim_timeout_victory().
  3. Distribute escrowed wager immediately without requiring server signature.

Acceptance Criteria

  • Strict ledger timestamp validation preventing premature victory claims.
  • Gas-efficient payout logic with minimal storage footprint.
  • Full coverage of edge cases (mutual timeout, server outage grace period).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions