How extensions work
During deployment, an extension can request a portion of the token’s supply and an amount of ETH viamsg.value, and can take actions on the token’s deployed pool. For example, extension code can add unlocked liquidity to the pool, distribute tokens or make swaps on the deployed pool.
The supply requested by extensions is taken from the amount that would otherwise go into the pool’s initial liquidity positions. Up to 90% of the token supply can be allocated to extensions. The ETH requested by all extensions must sum to the msg.value passed into deployToken().
Configuring an extension
To deploy a token with an extension, add anExtensionConfig struct to the DeploymentConfig’s list of extensions. The ExtensionConfig struct has this shape: