# Fees

It is possible for a user to earn arbitrage profit risk-free by manipulating the liquidity ratio using consecutive deposit/withdrawal and swaps. To prevent such misuse of the protocol, and to sustain the protocol over the long run, it is imperative that a deposit/withdrawal fee is charged to cancel such profit, and a small swap fee charged to sustain it.

## Net Liquidity Ratio (NLR)

All fees calculations revolve around a central parameter, Net Liquidity Ratio (NLR).

$$
Net\ Liquidity\ Ratio\ (NLR)\ =\ \frac{Total\ asset\ in\ all\ pools}{Total\ deposits\ made\ by\ LPs}
$$

### ​Where does this fees go?

Depending on the NLR, a part of fees goes into the treasury, a part of it stays in the protocol to cover the NLR while the remaining goes to LPs for providing liquidity. LPs will earn a fixed swap fee, while the fees between treasury and protocol will depend on NLR. Initially, the distribution between treasury and protocol will be given as:

$$
Treasury\ Ratio =
\begin{cases}
0% & \text{$NLR < 1$}\\
40% & \text{$1 <= NLR < 1.05$}\\
80% & \text{$NLR >= 1.05$}
\end{cases}
$$

​The remaining % remains in the system to increase the NLR.


---

# 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://docs.mantissa.finance/mantis-scroll/fees.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.
