An EVM opcode that deploys contracts to deterministic addresses based on the deployer address, a salt, and the contract bytecode. Unlike CREATE, the address can be computed off-chain before deployment. Used by Uniswap V2 Factory to enable the Router to calculate pair addresses without storage reads.
Architecture
CREATE2
Related terms in Architecture
Factory Pattern
A design pattern where one contract (the Factory) creates and registers other contracts (Pairs/Pools). In Unis...
Proxy Pattern
A smart contract architecture where users interact with a proxy contract that delegates calls to a separate im...
Core vs Periphery
An architecture pattern separating immutable, security-critical logic (Core: Pair, Factory) from replaceable u...
Fee-on-Transfer Token
A token that deducts a fee on every transfer, meaning the recipient receives less than the sender sent. These ...