Skip to main content

Overview

Every KasFun token goes through the following stages:

Stages

1. Created

A token is deployed via MemeFactory.createToken(). At this point:
  • Token ERC-20 contract is deployed
  • 80% of supply is deposited into the bonding curve pool
  • The token is immediately tradeable
const info = await factory.getTokenInfo(tokenAddress);
// info.fulfilled === false
// info.graduated === false

2. Trading (Bonding Curve)

Users buy and sell through MemeFactory.buy() and MemeFactory.sell(). The price follows a constant-product curve. You can monitor progress:
// Returns 0-10000 (representing 0-100%)
const progress = await factory.getBondingCurveProgress(tokenAddress);
console.log(`${Number(progress) / 100}% funded`);

3. Fulfilled

When kasReserves reaches the graduationThreshold, the token becomes fulfilled:
const info = await factory.getTokenInfo(tokenAddress);
// info.fulfilled === true
// info.graduated === false
Once fulfilled, buy and sell on the bonding curve are disabled. The token is waiting for liquidity migration.

4. Launched (Graduated)

Liquidity is migrated to Krokoswap DEX. The token is now tradeable on the open market.
const info = await factory.getTokenInfo(tokenAddress);
// info.fulfilled === true
// info.graduated === true
After graduation, Community Governance (CTO) becomes available — token holders can elect a Council and vote on proposals.

Checking Token Status

const info = await factory.getTokenInfo(tokenAddress);

if (info.graduated) {
  console.log("Token has graduated - trade on DEX");
} else if (info.fulfilled) {
  console.log("Token is fulfilled - waiting for DEX migration");
} else if (info.tokenId > 0n) {
  console.log("Token is trading on bonding curve");
} else {
  console.log("Token not found");
}

Events

Listen for lifecycle events emitted by MemeFactory:
EventWhen
Created(token, creator, tokenId, pool, name, symbol)Token is created
Buy(token, buyer, kasAmount, tokenAmount, fee)Someone buys tokens
Sell(token, seller, tokenAmount, kasAmount, fee)Someone sells tokens