# About FMM

The FMM(Future Matching Market) model is an innovative trading architecture designed to optimize the efficiency and fairness of market transactions through a series of carefully designed mechanisms. The core of this model lies in segmenting and allocating users' trading intentions over a future period, mitigating the immediate market impact that traditional immediate buy and sell operations may cause. Here is a detailed analysis of the FMM model:

1. Time-Sliced Trade Allocation:One of the core features of the FMM model is the distribution of each user's trade intention into future markets through time-sliced allocation. This time-sliced approach effectively mitigates market volatility and price spike phenomena that may occur due to a large volume of trades happening in a short time.
2. Increased Trade Depth:By pairing users' trade intentions with market demand over a future period, the FMM model increases the depth of the market. This means that even in situations of insufficient market liquidity, users are more likely to find matching trade counterparts, thereby achieving their trading objectives.
3. Matching Trade Intentions:The FMM model not only allocates users' trade intentions to the future but also transforms the originally one-directional buy or sell actions into bilateral equivalent exchange actions by matching trade intentions over a period. This mechanism increases the reciprocity of trades and the overall efficiency of the market.
4. Reduced Slippage Losses:Because the FMM model can provide greater trade depth and optimize the trade matching process through time slicing and matching trade intentions, it significantly reduces slippage losses caused by market price fluctuations. This is particularly important for large transactions, as slippage losses can constitute a significant proportion of the transaction value in large trades.

In summary, the FMM model, by introducing time slicing and trade intention matching mechanisms, not only enhances the depth and efficiency of the market but also helps to mitigate market shocks, improve the fairness of transactions, and reduce users' slippage losses. These features make the FMM model an innovative and promising trading model, significantly contributing to the stability and user experience of the cryptocurrency and decentralized finance markets.

<figure><img src="/files/vzyTXjTueBwe0rFn2uYy" alt=""><figcaption><p>AMM VS FMM</p></figcaption></figure>


---

# 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://rille-protocol.gitbook.io/rille-swap-document-v1/about-fmm.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.
