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

# Platform Overview

> How OneSwap works — swap tokens, provide liquidity, and earn fees on the Canton Network.

# What is OneSwap?

OneSwap is a decentralized token swap and liquidity protocol built on the **Canton Network**. It lets you exchange tokens, provide liquidity to earn trading fees, and manage your assets through direct Canton-party deposits.

## How It Works

OneSwap uses an **intent-based architecture**. Instead of constructing complex on-ledger swap transactions yourself, you simply:

1. Tell OneSwap what you want to do
2. Get the pool party that should receive the deposit
3. Send tokens from your wallet or app-controlled party
4. OneSwap detects the deposit and executes automatically

## Core Features

### Token Swaps

* Swap between CC (Amulet), USDCx, and other supported tokens
* Get a price quote before you commit
* Set slippage tolerance to protect against price movement
* Receive output back to the sender party by default

### Liquidity Pools

* Pools are created with a pair of tokens
* The exchange rate is determined by the ratio of reserves
* Every swap adjusts the reserves, keeping the product constant

### Earning Through Fees

When you provide liquidity to a pool, you earn a share of every swap fee generated by that pool.

<Info>
  See [Fee Sharing & Earning](/platform/earning) for a detailed breakdown of the fee model.
</Info>

## Architecture

* **Automated Market Maker (AMM)** — Executes swaps using constant product pools
* **Deposit Monitors** — Detect incoming token transfers and trigger execution
* **Intent System** — Manages swap and LP intents with automatic expiration
* **Direct-party settlement** — Deposits and payouts use the user's own party ID directly
* **DB-tracked LP ownership** — Liquidity positions are tracked by OneSwap and withdrawn through a locked settlement flow

## Security model

* **Swaps are direct-party** — The user sends input directly to the pool and receives output back to the sender party by default.
* **Liquidity deposits are direct-party** — Both LP deposits come from the same connected party to the pool LP address.
* **No custodial user wallet layer** — OneSwap does not create a separate execution wallet for end users.
* **Important boundary** — LP balances are still maintained in the OneSwap database rather than as user-held on-ledger LP tokens.
