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

Trading before and after graduation

A Pro token trades on its Curve first, then on its official Uniswap V4 pool. Read current on-chain state to select the route.

Choose the route

Factory.graduations(token) status

Meaning

Available path

0 — NotGraduated

Curve reserves have not been swept

Curve trades while initialized, ungraduated and sellable tokens remain

1 — Swept

Graduation reserves are held for pool creation

Create the official pool; Curve trading is closed

2 — PoolCreated

Official V4 liquidity is created

V4 swaps through a compatible router, with the Hook active

3 — EmergencyExited

Graduation reserves entered emergency distribution

Redeem through the activated EmergencyDistributor

A sold-out Curve can still show NotGraduated if its automatic sweep failed. AutoGraduationFailed can accompany a successful purchase. Retry the sweep separately; do not treat the successful buy as proof of an active V4 pool. The Graduation table explains each action and failure state.

Curve trading

Approve the input asset to the token's Curve, then use Exact Input buy/sell with minimum output and deadline. A closing buy can partially fill and refund unused Quote. See Bonding Curve Trading and the cost overview.

V4 trading

Confirm PoolCreated, then read poolForToken(token), poolConfig(poolId) and isPoolActive(poolId) from the configured Hook proxy. Check the token, Quote and pool identity.

The PoolKey sorts token and Quote into currency0/currency1 by address. Derive trade direction from that order. Exact Input fees reduce output; Exact Output fees increase input, and either launch tokens or Quote can be the fee asset.

The selected router must support the Hook's fee adjustment and enforce the user's final minimum output or maximum input. Follow that router's ERC20/Permit2 approval flow and simulate its final calldata. See V4 Trading Integration.

While Swept, pool creation can be attempted or retried. If the timed recovery conditions become available, Emergency Exit offers redemption instead. A progress percentage or failed swap alone does not establish which action is available.

Last updated

Was this helpful?