Resolution pipeline
At epoch end, the engine performs a deterministic pipeline:
- Detect boundary (epoch advanced / cutoff reached)
- Select canonical slot for resolution
- Fetch finalized blockhash for that slot
- Derive winning number using the documented algorithm
- Compute winners and payouts
- Publish result artifact (e.g., S3 + Arweave/Irys)
- Persist outcome state (DynamoDB / on-chain PDA references)
- Enable claiming
Idempotency
Each step uses stable keys (epoch/tier/etc.) so retries do not double-pay or double-publish.