The hook's launch record
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
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.