PackERC20Factory
BaseRegisteredA factory hook that creates pack-based ERC20 tokens backed by Chainlink VRF randomness. The beforeInitialize blocks direct pool creation; pools are initialized internally by the factory via enablePackOpening(). After each swap, a 1% fee is taken from the base token as an afterSwapReturnsDelta, and swaps are rejected if the base token is the specified side of the swap.
ALooks safeRegistered, verified, immutable
Pools
2
Dynamic-fee pools
0
Last new pool
18mo
Code size
23,519 B
What it can do
Runs on every swap
Its code executes inside each trade in pools that use it.
Can change what you receive
It can take or add tokens during a swap. Fees, burns and custom curves work this way, and so do scams.
Checks new pools
It runs when a pool is created, often to lock in that pool’s settings.
Pools using this hook
2 totalPairCreatedFeePool ID