Graduation & Migration
What happens when a curve completes, how migration works, and what changes after the token reaches DumpsterSwap.
Protocol
Completion and migration are separate phases
A curve is complete when its tradeable real token reserves reach zero. Migration is a separate permissionless step that packages the remaining liquidity into DumpsterSwap.
Completion vs migration
- Curve complete means the bonding curve cannot continue normal launch-phase trading.
- Migrated means someone has already called
migrateand liquidity has been moved into DumpsterSwap.
Those are distinct states, and integrations should treat them separately.
Migration flow
Curve is complete
Dumpster requires bonding_curve.complete == true and real_token_reserves == 0 before migration.
Pool bootstrap
Migration moves the remaining reserves into the accounts needed to bootstrap the canonical DumpsterSwap pool.
Pool creation CPI
Dumpster calls into DumpsterSwap to create the canonical pool and deposit the migrated liquidity.
LP burn and cleanup
Temporary LP and token accounts are cleaned up so the migrated liquidity is effectively locked by protocol design.
Bonding curve reset
The bonding curve reserves are zeroed and the curve is considered migrated.
Integration implications
- Post-migration trading should route to DumpsterSwap math and accounts, not Dumpster curve accounts.
- Migration is permissionless, so clients should be ready for a token to move into AMM trading at any time after completion.