# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://saseul-gold.gitbook.io/saseul-gold-docs/network-cli/swap-process.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
