Multi-Market Adapters
The Adapter Pattern
Each prediction market platform has its own token format, oracle source, and resolution mechanics. Varla uses adapter contracts that translate platform-specific details into a standardized interface VarlaCore understands.
Adapter architecture
Prediction Market Platform
│
Platform Adapter ← Translates:
├── Token format → Standard ERC-1155 interface
├── Price source → VarlaOracle-compatible feed
├── Resolution → Standard resolved/unresolved status
└── Market metadata → Risk tier classification
│
VarlaCore ← Works with any adapter Current Adapters
| Adapter | Platform | Chain | Token Handling |
|---|---|---|---|
| PolymarketAdapter | Polymarket | Polygon | CTF + NegRisk unwrapping |
| OpinionAdapter | Opinion | BSC | CTF-EE direct passthrough |
Adding a New Platform
To integrate a new prediction market, a new adapter contract must implement the IVarlaAdapter interface. This includes methods for token validation, price fetching, and resolution status checks. The adapter is then registered with VarlaCore via governance.
💡 Want to integrate?
If you're building a prediction market and want to integrate with Varla, reach out on Discord. We'll help you build an adapter for your platform.