Settle, migrate, and claim
Reviewed against contracts 86ee8cf on 6 November 2026. The generated reference contains complete signatures. The canonical address table binds this source to the 6 November deployment.
Settle
Section titled “Settle”Anyone calls blast_presale::settle(presale, presale_version, clock) after the commitment window ends, or once an active hard cap is full and closes_when_filled allows early closing. Target met gives Funded; below target gives Cancelled. Early settlement moves the end and liquidity deadline forward to count from that close.
If below target, send settlement alone: appending migration aborts the whole PTB. A buyer may fill an early-closing sale, settle, migrate and buy from the new pool in one transaction; disable early close if a scheduled window end matters.
Migrate
Section titled “Migrate”Migration is two commands in one PTB. Product and venue versions are separate; the vault has a third version. For Bluefin:
const migration = tx.moveCall({ target: `${PRESALE_PKG}::blast_presale::migrate`, typeArguments: [MEME, QUOTE], arguments: [tx.object(PRESALE), tx.object(PRESALE_VERSION), tx.object(TREASURY), tx.object.clock()],});tx.moveCall({ target: `${MIGRATORS_PKG}::bluefin::migrate`, typeArguments: [MEME, QUOTE], arguments: [ migration, tx.object(MIGRATORS_VERSION), tx.object(VENUE_CONFIG), tx.object(MEME_CURRENCY), tx.object(QUOTE_CURRENCY), tx.object(BLUEFIN_CONFIG), tx.object(VAULT_REGISTRY), tx.object(VAULT_VERSION), tx.object(TREASURY), creationFeeCoin, tx.object.clock(), ],});creationFeeCoin must hold exactly Bluefin’s configured SUI pool-creation fee. With sponsored gas, use the sender’s owned SUI input rather than assuming the gas coin belongs to them. This snippet assumes an existing Transaction, matching IDs and prepared fee coin; it is not a complete submission script.
The product pays or vests recipients, pays Blast or holds its partnered fees, and returns a sealed Migration. The venue redeems it, creates/seeds the pool and shares the vault. Omitting the venue command or any venue failure rolls everything back. The current Cetus signature takes the migration, migrators version, venue config, Cetus config/Pools/LP Burn manager, vault registry/version, Treasury and Clock, with type arguments <Meme, Quote, CoinA, CoinB> in Cetus order.
Both registry admissions are required: the venue witness and the product’s sealing package witness. Presale residuals become owner balances in the common vault. On a partnered sale, anyone later calls the product’s pay_protocol_fees_with_partner(presale, presale_version, treasury, partner); an empty ledger is a valid no-op.
Anyone calls blast_presale::claim(presale, presale_version, participant, clock). Migrated pays tokens and overflow; Cancelled refunds the full commitment. Payment goes only to the participant, once. The last claimant takes rounding remainders. Participant vesting starts at claim; recipient vesting starts at migration. Core payout creates the immutable utility vesting schedule, with no cancellation authority.
Cancel a stalled sale
Section titled “Cancel a stalled sale”Anyone calls cancel_unlaunched(presale, presale_version, clock) on a Funded sale at or after its liquidity deadline (at least seven days after the end). Migration and cancellation race; whichever lands first wins. Refunds still need claims. The creator may destroy the cancelled sale’s cap. No creator call retrieves the cancelled supply or withdraws commitments.