For the complete documentation index, see llms.txt. This page is also available as Markdown.

Graduation

Graduation moves a Pro token from Curve trading into its official Uniswap V4 pool in two stages: sweep the reserves, then create and fund the pool.

The Curve is ready to sweep when it is initialized, has not been swept and has no sellable tokens remaining. Curve.graduated() records the sweep; V4 trading requires status PoolCreated and an active Hook.

Actions and failure states

Action
Who calls / condition
Success
Failed attempt

Final Curve buy

Buyer; ordinary trade checks

Trade completes and attempts a sweep

A caught sweep failure leaves the trade successful and status NotGraduated; sold-out Curve stays closed

Factory.graduate(token)

Anyone; Curve ready and graduation checks pass

NotGraduated → Swept

State remains NotGraduated

Factory.forceSweptGraduation(token)

Factory Owner; Curve ready and reserve checks pass

Recovery sweep → Swept

The attempt rolls back

Factory.createGraduatedPool(token)

Anyone; current status Swept

Swept → PoolCreated

Remains Swept; retry is possible

Factory.emergencyExit(token)

Current Owner after 24 hours, anyone else after 7 days in Swept

Swept → EmergencyExited

Remains Swept

An initial buy during creation can also exhaust the Curve and attempt its sweep. Read Factory.graduations(token) after the receipt. PoolCreated and EmergencyExited are mutually exclusive terminal states.

Where the funds go

The sweep moves the Curve's remaining launch-token reserve and its Quote reserve into graduation custody. It excludes accrued trading fees and Creator Tax, which remain in their fee ledgers for separate settlement. Sweeping reserves is not a fee payout.

Pool creation uses those reserves to supply full-range V4 liquidity. Its position and residual launch tokens are permanently locked in LaunchLocker; Quote rounding dust goes to the configured protocol recipient. The protocol's locked position has no withdrawal or fee-collection flow. Independently added liquidity has its own ownership.

sweptAt is set by the successful sweep. Failed pool-creation retries do not reset it. If pool creation cannot complete, use the timed Emergency Exit path.

Display readiness

For progress, compare trackedQuote - quoteFeeBalance - creatorTaxBalance with graduationThreshold, using one Curve snapshot and the Quote's raw units. This excludes accrued fees, Creator Tax and unsolicited transfers. Use graduationReady() and the actual status for actions; a displayed 100% does not make a pool tradable.

After PoolCreated, verify the official pool and active Hook before routing swaps. Continue with Trading Before and After Graduation.

If pool protection has a nonempty list, successful V4 pool creation starts the token's Creator-selected countdown. Failed retries do not start it. See Pool Protection.

Last updated

Was this helpful?