Problem
No way to query top users by number of wraps. Useful for gamification and frontend leaderboards.
Considerations
Soroban storage doesn't support range queries. Options:
- Off-chain indexing — index events, build leaderboard in backend (recommended)
- On-chain sorted list — maintain a top-N list on-chain (expensive)
Acceptance Criteria
Problem
No way to query top users by number of wraps. Useful for gamification and frontend leaderboards.
Considerations
Soroban storage doesn't support range queries. Options:
Acceptance Criteria