@blastpackages/migrators

Version 1 - mainnet - 0x4a...af1f53

Published by@blastpackages · 12 packages

Readme

Versions

1

Dependencies

0

Dependents

0

Analytics

On the way

Blast migration adapters

This aggregate package starts every launch at the creator's venue tier, completes the launchpad's linear migration handoff into supported venue positions, keeps the LP principal and the protocol migration residuals in each launch's sealed LpVault, and owns everything after migration: the LP-fee policy, collection, auto-LP, holder rewards, and fee-split updates (ADR 0089). Venue code depends inward on the launchpad; the launchpad never imports this package.

Use task-specific sources instead of a duplicated route, event, dependency, or error inventory:

Administration is not implemented here. This package takes the Launchpad's role types from blast_fun_domain on the singleton Blast ACL and declares none of its own. It does own an independent operational generation and its own sealed PackageAdmin, so advancing this package leaves Launchpad on its generation.

Every protected mutation checks this package's generation. The Launchpad generation is no longer treated as this package's own: a composed call that migrates a launch supplies both version objects, because each package checks only the transitions it implements.

LP fees after migration

Anyone can call a venue's collect_fees. In one transaction it collects the position's fees, pays Blast's live share for that coin to the protocol destination, and splits the rest by the launch's FeeSplit:

PartWhere it goes
Creatoraccrues in the vault; vault::claim_creator_fees pays it to the holder of the launch's live CurveFeeCap
Auto-LPadded back at the pool's current price (Cetus: to a second position, because the migration position is burned through Cetus LP Burn; Bluefin: to the migration position); what the pool does not take waits for the next call
Rewardsaccrues in the vault for holder-reward rounds
Burnthe Meme is burned at once (paid to @0x0 when the supply is fixed); the Quote waits for a buyback
Recipientspaid directly to each address

A Blast administrator with the buyback role calls the venue's buyback_and_burn with an amount of the waiting burn Quote and a minimum Meme out set from an off-chain price: it swaps that much burn Quote for Meme in the vault's pool and burns it. The swap is not permissionless, because anyone could move the pool's price around it (ADR 0091).

Cetus orders a pool's coins by type name, so its migrate, collect_fees, settle_and_update_fee_split, and buyback_and_burn take the pool's coins in that order as two extra type arguments, <Meme, Quote, CoinA, CoinB>, and reject any other pair (ADR 0100). Bluefin's routes take <Meme, Quote>.

FeesCollected, AutoLiquidityAdded, and BuybackBurned break down every amount for indexers. The curve-fee cap holder changes the split with settle_and_update_fee_split, which settles the fees accrued under the current split first. An administrator changes Blast's default or per-coin share in LpFeePolicy, from the next collection. Because auto-LP adds at the current price, a caller can move the price around a collection and skim part of that call's auto-LP amount; frequent collection keeps each slice small (ADR 0089).

Holder rewards

Blast's off-chain system turns checkpointed holder balances into a Merkle allocation. A Blast administrator publishes it with blast_holder_rewards::publish_round, which reserves the round's budget from the vault's rewards balance into a shared Round. Anyone can relay a proof, and each leaf pays its committed beneficiary once.

The administrator can assign unallocated rewards to any recipient in a new round. Merkle proofs enforce the published allocation, not the truth of the off-chain holder accounting, so publish from a multisig with independent accounting review. Each round reserves its full declared budget and keeps a permanent claim bitmap. There is no expiry, cancellation, or recovery sweep, so an incorrect root or an over-reserved budget cannot be recovered through the current API. The leaf commits the vault ID, the round number, the index, the beneficiary, and both amounts (docs/vectors/holder-rewards.json is the fixed Move/SDK commitment vector).

The default accounting policy weights direct address balances by milliseconds held between checkpoints. It excludes configured custody addresses and the zero address. LP positions and balances held inside other contracts are not beneficial-owner balances under this policy.

Move source and tests own current functions, events, errors, and custody behavior. Move.toml and Move.lock own dependency resolution.

Install

You can install this package in your Move project by calling

mvr add @blastpackages/migrators
Interoperating Transactions

Description

Blast migrators on Sui mainnet