> For the complete documentation index, see [llms.txt](https://saseul-gold.gitbook.io/saseul-gold-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://saseul-gold.gitbook.io/saseul-gold-docs/network-cli/swap-process.md).

# Swap Process

1. The liquidity provider (lp) deposits a balance for two token pairs.
2. When a user executes a swap contract for a token pair, the token is exchanged according to the calculated rate.
3. At this time, the liquidity provider will be paid the lp token as a fee according to the lp ratio.
4. Liquidity providers receive a premium as a token and b token based on the percentage of lp tokens and the total amount of reserve fee when withdrawing deposits.

<mark style="color:red;">**Remittance failed if liquidity pool does not exist for token pair**</mark>

<mark style="color:red;">**Remittance failure if payment reserve is less than remittance quantity**</mark>
