Welcome to FairWins & ClearPath¶
Private wagers with friends, powered by trustless oracles — A platform suite built on shared, privacy-preserving infrastructure.
Platform Suite Overview¶
🎯 FairWins — P2P Wager Management Layer¶
FairWins is a peer-to-peer wager platform where friends create, accept, and resolve private wagers with trustless oracle integration. Stakes are locked in escrow and automatically settled.
Key Features: - Create 1v1 private wagers on any topic - Share wagers via QR code or invite link - Multiple oracle sources (Polymarket, Chainlink, UMA, manual + challenge) - Escrow-based stake management - Flexible binary outcome types (Yes/No, Over/Under, Win/Lose, etc.)
🏛️ ClearPath — DAO Governance Platform¶
ClearPath brings clarity to governance through futarchy-based decision-making, integrating privacy-preserving mechanisms for transparent yet secure collective intelligence in decentralized organizations.
Key Features: - Futarchy-based governance (vote on values, bet on beliefs) - Democratic welfare metric selection - Treasury management and proposal evaluation - Privacy-preserving voting mechanisms - Minority protection through ragequit
System Overview¶
Both FairWins and ClearPath are built on the same secure foundation:
- Conditional tokens (Gnosis CTF) enable efficient binary outcome markets
- Oracle integration resolves wagers and proposals via trusted data sources
- Privacy mechanisms prevent collusion and protect participant identity
- Smart contract escrow ensures trustless stake management
Quick Navigation¶
-
User Guide
Learn how to create wagers, accept challenges, and track results.
-
Developer Guide
Set up your development environment and learn about the shared architecture.
-
Architecture
Understand P2P wager flows, oracle integration, and system design.
-
API Reference
Detailed reference documentation for smart contracts and APIs.
Choosing Your Platform¶
When to Use FairWins¶
Choose FairWins for: - Private wagers between friends or small groups - Event predictions with automatic oracle resolution - Casual bets with trustless escrow (no need to trust the other party) - Any binary outcome — sports, crypto prices, weather, custom events
When to Use ClearPath¶
Choose ClearPath for: - DAO governance with formal proposal processes - Treasury management for institutional investors - Protocol decisions requiring welfare metric tracking - Grant allocation with transparent evaluation
Key Features¶
P2P Wager Flow¶
- Create — Pick a topic, set the stake, choose an oracle
- Invite — Share a QR code or link with your friend
- Lock — Both stakes are held in smart contract escrow
- Resolve — Oracle determines outcome automatically
- Settle — Winner claims the combined stake
Oracle Sources¶
- Polymarket — Peg to real-world event outcomes
- Chainlink — Price feeds for crypto wagers
- UMA — Custom truth assertions with dispute resolution
- Manual + Challenge — Creator resolves with 24h dispute window
Privacy & Security¶
- Zero-Knowledge Position Encryption: Poseidon encryption and Groth16 zkSNARKs for private positions
- MACI Integration: Key-change messages prevent verifiable vote buying
- Escrow: All stakes locked in audited smart contracts until resolution
System Components¶
FairWins Smart Contracts¶
- FriendGroupMarketFactory — Creates P2P wager markets between trusted parties
- ConditionalMarketFactory — Deploys binary outcome token pairs (CTF-compatible)
- OracleResolver — Multi-stage oracle resolution with dispute mechanism
- CTF1155 — ERC-1155 conditional tokens for wager positions
ClearPath Smart Contracts¶
- FutarchyGovernor — Main governance coordinator
- WelfareMetricRegistry — Welfare metrics management
- ProposalRegistry — Proposal submission and management
- RagequitModule — Minority protection
Shared Infrastructure¶
- PrivacyCoordinator — Privacy and anti-collusion
- TieredRoleManager — Role-based access control
- NullifierRegistry — RSA accumulator-based blocklist
Getting Started¶
Choose your path based on your use case:
Want to create private wagers with friends or build on the wager platform?
Want to participate in institutional governance or manage a DAO treasury?
Want to contribute to the project or integrate with the systems?
Want to understand the technical details and design decisions?
Security Notice¶
Development Status
Both FairWins and ClearPath are in active development. Before mainnet deployment:
- Complete professional security audits (minimum 2)
- Run bug bounty program
- Community review period (30+ days)
- Formal verification of critical functions
- Progressive decentralization of guardian powers
License¶
This project is licensed under the Apache License 2.0. See LICENSE for details.
Contributing¶
Contributions are welcome! Please read our contributing guidelines to get started.