# Swap

Available swap protocols: [Pancake](http://aptos.pancakeswap.finance/), [Liquidswap](https://liquidswap.com/#/)

<div align="left"><figure><img src="https://4053290323-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIfK7rdLIiBmMN0rsB8dc%2Fuploads%2FbGc0Zdd4vuXVjCnqyeRp%2Fswap.png?alt=media&#x26;token=a19db0b7-4d30-4f61-a2e7-2462579cbf6e" alt="" width="367"><figcaption></figcaption></figure></div>

{% hint style="info" %}
LiquidSwap uses two types of liquidity pools: Stable and Uncorrelated. The Aptos Helper automatically selects the most profitable price for the pair of tokens you've selected.
{% endhint %}

## Parameters

* <mark style="color:purple;">**Make reverse swap**</mark> - will make second reverse swap. Here's how it works: for example after your initial swap of <mark style="color:blue;">1 APT</mark> for <mark style="color:green;">5 USDT</mark>, the second swap will automatically reverse it, swapping <mark style="color:green;">5 USDT</mark> back into <mark style="color:blue;">APT</mark>. This option allows you to continuously cycle your swap transactions.
* <mark style="color:purple;">**Min amount & Max amount**</mark> - the final amount of coin to swap will be randomly chosen in the range of these numbers. If the maximum amount to swap exceeds the current wallet balance, the wallet balance will be used as the maximum value.
* <mark style="color:purple;">**Use  all balance**</mark> - will swap all the coins you have in your wallet.
* <mark style="color:purple;">**Send % of balance**</mark> - It will randomly select a number from the minimum and maximum amount fields. This number will represent the percentage of tokens used from your wallet balance.
* <mark style="color:purple;">**Compare to Gecko price**</mark> - if the protocol's price is lower than the Gecko price, because of low liquidity, and this price difference reaches the percentage you've set, the swap will be stopped. (To know how to use this feature with your tokens head to this [page](https://franky-murrey.gitbook.io/aptos-helper/usage/modules/broken-reference)).
* <mark style="color:purple;">**Slippage**</mark> - swap slippage in %
* <mark style="color:purple;">**Gas price**</mark> <mark style="color:purple;"></mark><mark style="color:purple;">&</mark> <mark style="color:purple;"></mark><mark style="color:purple;">**Gas limit**</mark> - price per gas unit and max used gas parameters ([Gas calculation method](https://franky-murrey.gitbook.io/aptos-helper/usage/gas-calculation)).
* <mark style="color:purple;">**Force gas limit**</mark> - when turned on, the maximum gas limit will be exactly taken from the input.
