# 💱 Swap

The **Swap** module on KaspaFinance is the core of the protocol’s decentralized exchange (DEX), powered by a **V3-style Automated Market Maker (AMM)** deployed on the **Kaspa EVM**. It enables users to trade assets instantly, with deep liquidity, tight spreads, and ultra-low latency thanks to Kaspa’s blockDAG architecture.

***

#### ⚙️ How Swap Works

KaspaFinance’s swap engine is built on a **concentrated liquidity model**, similar to Uniswap V3. This means:

* Liquidity providers (LPs) can choose **custom price ranges** to deploy capital.
* Capital is used more efficiently, increasing yields for LPs and reducing slippage for traders.
* Traders get **real-time quotes**, and the most efficient path is selected via intelligent routing.

***

#### 🧠 Key Features

**🔁 Concentrated Liquidity**

* LPs don’t have to spread liquidity across an infinite price range.
* Instead, they set **ranges where they believe trades will occur**, earning more with less capital.

**💨 High-Speed Execution**

* Powered by Kaspa’s **parallel blockDAG**, which enables extremely fast transaction confirmations.
* Traders experience **near-zero latency**, even during high activity periods.

**📉 Low Slippage, Low Fees**

* Optimized routing ensures minimal slippage on large trades.
* Protocol fees are lower than most Ethereum-based DEXs due to Kaspa’s performance advantage.

**📊 TradingView Charts Integration**

* Full charting available on major pairs: $KAS, $KFC, $USDT, $ETH
* Users can visualize price trends and make informed trades

**🔄 Multi-Hop Swaps**

* Swap from Token A → Token C even if no direct pool exists.
* The router will automatically use intermediate tokens (A → B → C) to find the best path.

**🔒 Permissionless Pairs**

* Anyone can create a new pool
* Custom token support for verified projects
* Ecosystem tokens can list and bootstrap their own markets

***

#### 💡 Why It Matters

Most DEXs struggle with:

* **High gas fees**
* **Slow execution**
* **Inefficient capital usage**

KaspaFinance’s swap engine solves all of these with:

* **EVM-compatible execution on Kaspa DAG**
* **Efficient AMM logic**
* **Instant trade confirmations**

***

#### 🛠️ Advanced Features Coming Soon

* **Limit Orders - future state**
* **TWAP/Auction Execution - future state**
* **Batch Trading - future state**
* **Fee Tier Selection for LPs**
* **On-Chain Oracle Integration for Stop Losses**

<figure><img src="broken-reference" alt=""><figcaption></figcaption></figure>
