Skip to content

Documentation GAP for DataKey::Bet Storage #201

@hman38705

Description

@hman38705

Description
The DataKey::Bet variant in bets.rs (Line 9) stores participation records in persistent storage. There is no official documentation regarding the TTL (Time To Live) management for these individual bet records beyond the inherited market bump. Individual bet records could potentially expire if a market stays stale for a long time, leading to claim failures.

Requirements and context

  • Document the TTL strategy for all per-user storage entries.
  • Ensure user claims are protected by explicit TTL bumps during the dispute/resolution window.

Suggested execution

  • Fork the repo and create a branch: git checkout -b docs/issue-100-ttl-strategy
  • Update comments and implementation.

Implementation changes

  • Add explicit documentation to bets.rs and ensure extend_ttl is called on DataKey::Bet.

Test and commit

  • Verify that a user's bet record remains accessible 6 months after the initial bet.

Example commit message
docs: document and implement explicit TTL management for bet records

Guidelines

  • Comprehensive documentation.
  • Timeframe: 24 hours.

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