# RFQ DEX

The liquidity on RHEA Finance is provided by Liquidity Providers (LPs) who stake their tokens in the associated 'Pools'. In return, they receive LP (Liquidity Provider) tokens, which can be staked to earn REF and other tokens in the 'Farms'.&#x20;

When you trade (swap) on RHEA Finance, you will pay the pool fee (trading fee), which is broken down as follows:

![](/files/3efWEtc3ueu0SVsLSaSO)

For traders, the fee is always taken on the amount paid. The Protocol and Referral fees translate into LP tokens.

{% hint style="info" %}
For regular pools (Swap function), if there is no account to receive the Referral Fee, it goes to all LPs of that pool as a form of increased LP tokens.x3

For stablecoin pools (StableSwap function), if there is no account to receive the Referral Fee, it goes to the Protocol Fee as a form of increased LP tokens.

To learn more about this subject, click the link for additional details: <https://gov.ref.finance/t/contract-upgrade-1-7-0-referral-fee/823> <br>
{% endhint %}


---

# 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://guide.rhea.finance/near-chain-guides/swap.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.
