View Repository
Build, test, and run the Anchor program and client.
Protocol Architecture
Place this example in a complete prediction-market or trading architecture.
What the example demonstrates
- Session-authorized execution: place bets without repeated wallet prompts after setup.
- SPL-token custody: stake and pool liquidity move through delegated eATAs.
- Real-time pricing: opening and settlement prices come from the same configured oracle feed.
- Expiry settlement: wins pay the configured multiplier, ties refund, and losses remain in the pool.
Recommended next steps
SPL Token Custody
Understand eATA custody and post-commit payout alternatives.
Pricing Oracle
Validate feed identity, freshness, and price data in your program.
Session Keys
Scope repeated trading actions and review the security boundaries.
Cranks
Extend manual settlement with scheduled expiry checks.

