Skip to main content
A launch has two records. The factory’s is keyed by token address and holds the settings the launch was created with. The hook’s is keyed by pool id and holds the settings fees are paid out under.
The hook's launch record
The hook’s launch record has one field fewer than on v2. protocolFeeRecipient was at index 6 on v2 and has been removed, since the protocol’s share now goes to the hook’s current recipient. Every field after it is now one index lower. Decoding the record with the v2 ABI fails because it is one field shorter, but code that reads fields by position with the v2 indexes gets the wrong value for every field from index 6 on, without reverting.
creator is the launch’s current creator fee recipient, the address fees are paid to. It starts as the fee recipient set at launch, or the launching wallet if none was set, and changes when the recipient is transferred or replaced by Pons. buybackCreatorRecipient is the vest recipient recorded at launch and never changes, so don’t use it to find the current vest recipient. The vest goes to the same address as creator. The vault’s vestingTerms(token) also returns it, but only once a vest has started or the recipient has changed. Before that it returns the zero address.

Unused v2 fields

getLaunchedToken on the factory still returns the v2 struct, so some of its fields don’t mean anything on v3. They still have values, so it’s easy to branch on them by mistake.

Unswept fees

Pending balances
These are balances before a sweep. What a recipient can actually withdraw is in the escrow, and the two numbers won’t match. Show them separately.

Reading the vest

Vault reads
vestingStart returns a weighted average start time. It’s only for display and can’t be used to work out the vested amount, since each tranche has its own schedule. For any number a user will rely on, use the vested and releasable amounts, or the schedule itself. Releasing reverts while a buyback swap for that token is running. The check is set and cleared inside the sweep transaction, so a normal caller never hits it. You’d only hit it if your contract gets called back during a sweep and tries to release from that callback. Release in a separate transaction instead.