> ## 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.

# Introduction

> KasFun - Token launchpad on Kasplex with Bonding Curve trading

## What is KasFun?

KasFun is a token launchpad built on the **Kasplex** EVM chain. Anyone can create a token and trade it through a **Bonding Curve** mechanism. Once a token reaches its fundraising goal, liquidity is automatically migrated to [Krokoswap](https://krokoswap.io/) DEX.

## How It Works

<Steps>
  <Step title="Create a Token">
    Anyone can launch a new token via the MemeFactory contract. Each token starts with an internal Bonding Curve market.
  </Step>

  <Step title="Trade on Bonding Curve">
    Users buy and sell the token using KAS. The price follows a constant-product curve — early buyers get lower prices.
  </Step>

  <Step title="Graduation">
    When the KAS reserves in the pool reach the graduation threshold, the token "graduates". Trading on the internal market stops.
  </Step>

  <Step title="DEX Migration">
    Liquidity is automatically migrated to Krokoswap DEX for open market trading.
  </Step>
</Steps>

## Core Concepts

<CardGroup cols={2}>
  <Card title="Bonding Curve" icon="chart-line">
    A constant-product formula (`x * y = k`) determines the token price. As more KAS flows in, the price rises.
  </Card>

  <Card title="Graduation" icon="graduation-cap">
    Each token has a fundraising target. Once reached, the bonding curve is complete and liquidity moves to DEX.
  </Card>

  <Card title="Community Governance (CTO)" icon="users">
    After graduation, token holders can elect a Council, create proposals, and vote on community decisions.
  </Card>

  <Card title="All On-Chain" icon="link">
    Token creation, trading, elections, and voting are all executed through smart contracts on Kasplex.
  </Card>
</CardGroup>

## Contract Architecture

KasFun uses three core contracts:

| Contract         | Purpose                                              |
| ---------------- | ---------------------------------------------------- |
| **MemeFactory**  | Token creation, buy/sell trading, token info queries |
| **BondingCurve** | Price calculation (pure math functions)              |
| **Council V1**   | Community governance — elections, proposals, voting  |

<Info>
  All amounts in the contracts use **18 decimals** (wei). `1 KAS = 1e18 wei`.
</Info>
