> ## Documentation Index
> Fetch the complete documentation index at: https://pons-labs-llc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrating from v2

> Everything that changes for an integration moving from the v2 contracts to v3.

If you’ve integrated the v2 contracts, these are all the changes you need to know about. Some of them can return incorrect results without reverting, so check those first: the token address, `pairTokenEconomics`, and any code that reads the hook's launch record or the launch config by position.

| Change | What to do |
| - | - |
| The hook's launch record has one fewer field | 14 fields are now 13. Decoding it with the v2 ABI fails, but code that reads fields by position gets wrong values without reverting. See [reading a launch](https://pons-labs-llc.mintlify.site/v3/reading-state.md). |
| The sweep call has one fewer argument | The step that converted tokens to the quote asset is gone, so the sweep takes the pool id and one minimum instead of two. A three-argument call won't build against the current ABI, and reverts at runtime against an old one. Only the sweep relay can call it on a pool with fees pending. |
| New launch call | One instant launch call replaces the v2 launch call, and it emits `TokenLaunchedInstant` instead of `TokenLaunched`. The graduation calls are gone along with the curve. |
| The launch config has three fewer fields | Seven fields are now five. The curve fee, phantom quote and graduation threshold were removed with the curve, and an opening tick was added. Decoding `getLaunchConfig` with the v2 ABI fails, but code that reads fields by position gets wrong values without reverting. |
| `pairTokenEconomics` returns different fields | It still returns three values, but v2's `(phantomQuote, graduationThreshold, decimals)` are now `(decimals, openingTick, supply)`. Decoding it with the v2 ABI gets wrong values without reverting. |
| The pinned-terms hash changed | It's computed differently now, so read it from the v3 factory. Don't reuse a v2 value or build one yourself. |
| No permissionless sweeps | The tipped auto-sweep has been removed. Sweeps go through the allowlisted relay. |
| No address helper | `predictLaunchAddresses` has been removed, but token addresses are still CREATE2 and you can still compute them. The CREATE2 deployer is the launch deployer contract, and the salt is `keccak256(abi.encode(launcher, params.salt))`, where `launcher` is the wallet calling `launchTokenInstant`. The init code has to be the deployed token's exact creation code, and a fresh compile gives a different address, so the simplest way to get the address is to simulate `launchTokenInstant` with `eth_call`, which returns it. If you keep using the v2 formula, you'll pre-sign buys for an address that never gets a contract. |
| No launching for another wallet | The deployer is always the caller. Set the fee recipient if the earnings should go to someone else. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.