Skip to content

Add Escrow Balance Queries with Historical Snapshots #953

Description

@famvilianity-eng

Add Escrow Balance Queries with Historical Snapshots

Priority: Low
Estimated Time: 2 hours

Description

There is no way to query historical escrow balances for a player. Analytics and reporting require snapshotting balance at key points.

Tasks

  • Add DataKey::PlayerBalanceSnapshot(player, u64) to store balance history
  • Implement get_balance_at_timestamp(env, player, timestamp) -> i128
  • Record snapshot on every deposit, withdrawal, and payout
  • Add tests for snapshot accuracy across multiple operations

Auto-created from UNSOLVED_ISSUES_40.md

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions