Uniswap V3 Factory

The interface defines the methods and events for the Uniswap V3 Factory contract, which is responsible for creating pools and managing protocol fees

IUniswapV3Factory

The interface provides functionality for:

  • Managing the ownership of the factory.

  • Creating new liquidity pools.

  • Enabling new fee amounts for pools.

  • Retrieving information about existing pools and enabled fees.

    • Events:

    • OwnerChanged: Emitted when the factory owner changes.

    • PoolCreated: Emitted when a new pool is created.

    • FeeAmountEnabled: Emitted when a new fee amount is enabled.

    • Functions:

    • owner(): Returns the factory owner.

    • feeAmountTickSpacing(uint24 fee): Returns tick spacing for a fee.

    • getPool(address tokenA, address tokenB, uint24 fee): Returns pool address for given tokens and fee.

    • createPool(address tokenA, address tokenB, uint24 fee): Creates a new pool.

    setOwner(address _owner): Sets a new factory owner.

Last updated