Version 1 - mainnet - 0xb8...898df4
Readme
Versions
1
Dependencies
0
Dependents
0
Analytics
On the way
blast_migrators holds the Cetus and Bluefin venues both products migrate
through: launchpad launches and presales alike. A venue takes part in a sale
twice. In the sale's creation PTB its prepare borrows the coin's
TreasuryCap, records the pool tier (Cetus also reserves pool creation), and
returns a sealed blast_core::migration::VenueTicket that the product's new
redeems and checks against its own venue allowlist. At migration the PTB calls
the product's own migrate, which returns the sealed
blast_core::migration::Migration, then passes it to the venue's migrate,
which redeems it under its witness, creates the pool, and creates and shares
the sale's blast_vault::vault::Vault in the same transaction. An unredeemed
Migration aborts the transaction, so the two calls are atomic. The vault, not
this package, holds the position, the fee split, Blast's share, the partner
hold, holder rewards, and the owner's balances
(ADR 0137).
The venues depend inward on blast_core and blast_vault only: they import
no product, and no product imports them, so a product upgrade forces no relink
here. A vault upgrade does, because the venues call version-gated vault
functions.
Use task-specific sources instead of a duplicated route, event, dependency, or error inventory:
docs/llms/ for calls
and their objects;scripts/check_mainnet_abi.mjs for live compatibility;Administration is blast_admin's generic package administration:
PackageVersion<BLAST_MIGRATORS> and PackageAdmin<BLAST_MIGRATORS>, under the
package-scoped blast_admin::package_admin roles (UpgradeAdmin,
CancelAdmin) typed by this package's one-time witness (OTW). Buybacks take the shared
blast_core::blast_domain::BuybackAdmin; the package declares no roles of its
own. Every venue call checks this package's version; the vault calls it
makes check the vault's.
Publication transfers an owned Publication<BLAST_MIGRATORS>.
blast_admin::package_admin::wrap consumes it with the matching fresh
UpgradeCap and shares the version and the administration; the PackageAdmin
starts with a 48-hour notice. The package defines no pause bits: migration
stops with the product's migration pause bit, and buybacks with the vault's
admin pause bit (ADR 0134).
Anyone can call a venue's collect_fees. In one transaction it collects the
position's fees and hands them to blast_vault::vault::split_fees, which pays
Blast's share of each asset to the core Treasury (or holds it for the
sale's partner) and splits the rest by the vault's FeeSplit:
| Route | Where it goes |
|---|---|
| Owner | accrues in the vault; the sale's owner claims it with an owner proof from the sale's product and blast_vault::vault::claim_owner_balances |
| Auto-LP | accrues in the vault until anyone calls the venue's compound_auto_lp, which adds it 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. Compounding is apart from collection, so a venue refusing the add never blocks collecting fees |
| Holder rewards | accrues in the vault for holder-reward rounds |
| Burn | the Meme is burned at once (paid to @0x0 when the supply is fixed); the Quote waits for a buyback |
| Address | paid directly to each address |
A Blast administrator with BuybackAdmin 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_apply_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>.
The owner schedules or cancels a new split on the vault with an owner proof
(blast_vault::vault::schedule_fee_split / cancel_fee_split); the notice is a
fixed 48 hours. Expiry leaves the old split active until anyone calls the
venue's settle_and_apply_fee_split, which settles accrued fees under the old
split before activating the stored replacement. Blast's share starts from
the product's LP-fee policy, sealed into the Migration's vault terms, is capped
at 30% per asset, and changes only per vault after the vault's fixed 48-hour notice.
Because auto-LP adds at the current price, a caller can move the price around a
compounding call and skim part of that call's auto-LP amount; frequent
compounding keeps each slice small.
Holder-reward rounds belong to the vault (blast_vault::holder_rewards), under
the shared blast_core::blast_domain::RewardsAdmin; this package only routes
the holder-reward share into the vault. The rewards 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
schedule from a multisig with independent accounting review; the round notice
lets CancelAdmin cancel a compromised administrator's round before anyone
publishes it.
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.
You can install this package in your Move project by calling
mvr add @blastpackages/migrators-v2No description provided