This repository contains the core smart contracts for the Futarchy protocol, enabling market-based governance through conditional token markets. The protocol is currently under active development.
src/FutarchyPoolManager.sol: Manages conditional pools for market creationsrc/pools/BalancerPoolWrapper.sol: Balancer pool integration
src/interfaces/ICTFAdapter.sol: Interface for conditional token operationssrc/core/GnosisCTFAdapter.sol: Implementation for Gnosis CTF
src/optimizer/FaoGovernor.sol: Governance execution contractsrc/optimizer/FaoOracleSafe.sol: Oracle for market evaluationssrc/optimizer/ProposalManager.sol: Handles proposal lifecyclesrc/optimizer/DualAuctionManager.sol: Manages proposal right auctionssrc/optimizer/FAOToken.sol: Protocol token implementationsrc/optimizer/FAOIco.sol: Token distribution contract
src/combinatorial/: Advanced combinatorial market framework (WIP)
All contracts are deployed and verified on Gnosis Chain:
-
GnosisCTFAdapter
-
BalancerPoolWrapper
-
FutarchyPoolManager
-
ProposalNFT
-
FutarchyRandomFailure
-
FutarchyOracle
-
FutarchyGovernor
-
ProposalManager
-
FutarchyProposerGuard
-
ProposalManager (final instance)
All contracts are verified and can be interacted with through GnosisScan.
Install the Foundry toolchain:
curl -L https://foundry.paradigm.xyz | bash
foundryupAfter installation, verify everything is working:
forge --versionThis repository is under active development. Installation and development instructions will be added soon.