Skip to content
    hazBasehazBaseDocs
    SMART CONTRACTS
    Contract catalog

    AMMFactory

    Create and look up pools for token pairs.

    Markets & fund routingAMMFactory.sol

    Role and use

    Find an existing pool by token pair or create one when needed.

    Integration considerationsManage implementation addresses and default parameters. Pool creation and liquidity provision are separate operations.

    Key contract operations

    Key entry points for direct contract calls. Consult the linked implementation and matching ABI for parameters, types and access conditions.

    OperationPurpose
    createPoolCreate a token-pair pool
    getPoolFind a token-pair pool
    setDefaultsUpdate defaults for new pools

    Related contracts

    Put it into practice

    Payments & connected services

    See the data model, processing sequence and SDK code for an application-level implementation.

    Read the implementation pattern

    Specification and source

    The Solidity source is pinned to the revision below. Match it with the SDK version and your network’s implementation address and ABI.

    circuitbreaker-amm/contracts/AMMFactory.sol

    Source revision: b53a5b5