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
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
DataKey::PlayerBalanceSnapshot(player, u64)to store balance historyget_balance_at_timestamp(env, player, timestamp) -> i128Auto-created from UNSOLVED_ISSUES_40.md