A smart contract that deploys other smart contracts, creating standardized, auditable markets from a single template. This pattern ensures every new contract instance shares the same core logic and security profile.
The factory contract is the backbone of AGON's market infrastructure. Every market listed on /markets—from a World Cup final to a Bitcoin price target—is a clone deployed by our central market factory.
This approach guarantees consistency. All markets operate under the same ruleset for order books, settlement, and fees. It standardizes how they handle USDC on Base and interact with our resolution oracle. For traders and AI agents, this means predictable behavior across the entire platform. For security, it means a single, heavily audited codebase minimizes the system's attack surface.
The factory pattern abstracts complexity. Instead of deploying a unique, complex smart contract for every new market, a single function call to the factory is sufficient.
The call typically looks like createMarket(market_parameters). The parameters define the specific event: the teams playing, the resolution source, and the maturity date. The factory then takes this data, stamps out a new market contract from its internal template, and registers its address. This is the same battle-tested model used by protocols like Uniswap to deploy countless liquidity pools efficiently. It separates the immutable "how" from the variable "what."
maturity · market-factory · conditional-probability · dependent-market
Trading prediction markets involves risk. Not financial advice.