> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kas.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# Graduation

> What happens when a token reaches its fundraising goal

## What is Graduation?

When a token's bonding curve pool accumulates enough KAS to reach the **graduation threshold**, the token "graduates" — it transitions from the internal bonding curve market to a DEX (Krokoswap).

## Graduation Flow

**1. Threshold Reached**

The `kasReserves` in the pool reaches `graduationThreshold`. The token becomes **fulfilled**.

```javascript theme={null}
const info = await factory.getTokenInfo(token);
// info.fulfilled === true, info.graduated === false
```

**2. Liquidity Migration**

The platform automatically migrates liquidity from the bonding curve pool to Krokoswap DEX. No user action needed.

**3. Graduated**

The token is now live on DEX. The `graduated` flag is set to `true`.

```javascript theme={null}
const info = await factory.getTokenInfo(token);
// info.fulfilled === true, info.graduated === true
```

**4. CTO Available**

Community Governance becomes available. Token holders can elect a Council and participate in proposals.

## Checking Progress

```javascript theme={null}
// Progress: 0-10000 (representing 0.00% - 100.00%)
const progress = await factory.getBondingCurveProgress(tokenAddress);
const percent = Number(progress) / 100;
console.log(`${percent}% to graduation`);

// Or check reserves directly
const info = await factory.getTokenInfo(tokenAddress);
const params = await factory.getTokenParamVersion(tokenAddress);
const remaining = params.graduationThreshold - info.kasReserves;
console.log(`${ethers.formatEther(remaining)} KAS remaining`);
```

## After Graduation

| Action | Bonding Curve | DEX (Krokoswap) |
| - | - | - |
| Buy | Not available | Available |
| Sell | Not available | Available |
| Price source | N/A | Krokoswap pool |

> [!WARNING]
>
> Calling `buy()` or `sell()` on MemeFactory for a graduated token will **revert**.

## Community Governance (CTO)

After graduation, the token unlocks Community Take Over (CTO) features:

* **Council Election** — token holders vote to elect council members
* **Proposals** — council members create proposals
* **Community Voting** — token holders vote on proposals by locking tokens
* **Tax Configuration** — community can set token transaction tax via proposals

See the [Community Governance](https://docs.kas.fun/governance/overview.md) section for details.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.