Oracle Security
Multi-Source Validation:- Median of Pyth + Switchboard prices
- Reject if oracles disagree by >2%
- 15-minute TWAP averages out manipulation
- Require minimum updates in TWAP window
- Extend window if oracle temporarily down
- Mark invalid if insufficient data
- Maximum 1% price movement per minute
- Outlier detection: reject prices >3 standard deviations
- Multi-feed median prevents single-source manipulation
Circuit Breakers
Markets automatically pause if price moves:- 10% in <60 seconds
- 25% in <5 minutes
1
Trading paused immediately
2
Switch to call auction mode
3
Admins alerted
4
Automatic resume after cooldown or manual approval
Liquidation Controls
Position Value < Maintenance Margin → Liquidation Liquidation Process:1
Liquidate 25% of position
2
Apply 10% penalty to insurance fund
3
Check if still underwater
4
If yes: liquidate another 25%
5
Repeat until position safe or fully liquidated
- Funded by liquidation penalties (10% of liquidated value)
- Plus 5% of all platform fees
- Covers negative balances from latency/congestion
- Balance publicly visible on-chain
- Target reserve: 2% of platform TVL The insurance fund protects the platform from user accounts going negative due to rapid price movements or network congestion preventing timely liquidation.
Pre-Event Freeze
Markets can implement freeze mechanisms before resolution: Option 1: Fee Escalation Time to resolution < 10 minutes: Time to resolution < 5 minutes: Option 2: Position Freeze Time to resolution < 5 minutes:- New positions: DISABLED
- Exit positions: ENABLED
Slippage Protection
Users set maximum acceptable slippage on market orders (default 5%). If : → Revert transaction → No trade executed → No fees charged Protects users from unexpected execution prices in volatile or thin markets.Platform Upgrades
Timelock Requirements:- Parameter changes: 48-hour timelock
- Critical code changes: 72-hour timelock
- 3-of-5 multisig for admin functions
- 2-of-3 multisig for resolution submissions
- 2-of-5 multisig for emergency pause (faster response)
Future: zkML & zkTLS Research
Space is researching zero-knowledge proofs for an even more cutting-edge, trustless subjective resolution yet to be utilized within prediction markets: zkML (Zero-Knowledge Machine Learning):- Prove AI model output without revealing model weights
- On-chain verification of resolution logic
- No trust required in resolution operators
- Prove data was fetched from specific URL
- Cryptographic proof of source authenticity
- Combine with zkML for fully automated resolution
