> For the complete documentation index, see [llms.txt](https://docs.camelot.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.camelot.exchange/get-started/castle-tutorials/swapping-explained.md).

# Swapping Explained

The swap feature is used when traders want to exchange tokens within trading pairs.&#x20;

On Camelot, users are charged a [trading fee](/tokenomics/protocol-earnings.md) when they make a token swap.\
[Liquidity](/get-started/castle-tutorials/providing-liquidity-explained.md) is provided to the exchange by liquidity providers, who add their tokens to liquidity pools.

### Swap modes

* Aggregator (V3) - This mode utilizes the Paraswap and OpenOcean APIs and combines both the Camelot V3 and V2 AMMs (Native mode uses only V3 and V2 AMMs)
* V3 - This mode exclusively uses the V3 AMM
* V2 - This mode exclusively uses the V2 AMM

### How to

{% content-ref url="/pages/uk2kZxIpUcMZIqyuzF7f" %}
[Swap tokens](/get-started/castle-tutorials/step-by-step-guides/swap-tokens.md)
{% endcontent-ref %}

{% hint style="warning" %}
For tokens with a custom transfer **TAX**, get familiar with the following [document](/get-started/castle-tutorials/swapping-tax-tokens.md)
{% endhint %}

{% hint style="danger" %}
Before initiating the swap, please make sure you are satisfied with the output parameters, such as price impact, minimum received, and rates
{% endhint %}

<figure><img src="/files/xehCgPEgPHcDKdBo5X1h" alt=""><figcaption></figcaption></figure>
