Architecture
Solana Program
Handles pool lifecycle, staking, and payouts on-chain. All financial settlement is transparent and verifiable.
Private Execution (MagicBlock's Private Ephemeral Rollups)
Processes predictions, updates, and reward calculations securely off-chain, preventing data leakage before settlement.
Oracle Integration
Integrates with Pyth Oracle to source final outcome data at the exact pool deadline.
Backend Services
Coordinates resolution and submission of results, bridging private computation with on-chain settlement.
Data Flow
1
User submits prediction
Prediction is sent to the private execution environment — it is not visible on-chain.
2
Pool closes
No further predictions or updates are accepted.
3
Oracle fetches final outcome
The outcome value is pulled from the oracle at the exact cutoff time.
4
Private execution calculates weights
Accuracy scores, time bonuses, and conviction bonuses are computed securely.
5
Results submitted on-chain
Final weights and payouts are submitted to the Solana program.
6
Rewards distributed
Participants can claim their rewards directly from the on-chain program.

