Found Academy useful? A $5 donation by May 14 helps us ship more, faster. Every donor counts (QF matching).

Donate
All glossary terms
Architecture

Factory Pattern

A design pattern where one contract (the Factory) creates and registers other contracts (Pairs/Pools). In Uniswap V2, the Factory uses CREATE2 to deploy Pair contracts with deterministic addresses, enabling gas-efficient address computation without on-chain lookups.

Related terms in Architecture