# Market control of FMM

The FMM(Future Matching Market) model is an innovative market structure designed to achieve a detailed balance of token supply and demand and maintain price stability through a series of finely adjusted mechanisms. This model integrates basic token pool allocation strategies with predictive analysis of future market trading demands, achieving sensitive and dynamic adjustment of token prices. Here is a detailed explanation and further elaboration of the FMM model:

1. **Dynamic Price Adjustment Based on Market Demand**:Token prices dynamically adjust according to the market's real-time demand for that token. When the market shows a buying trend for a specific token, the model gradually increases the token price to achieve supply and demand balance.
2. **Interaction Between Virtual and Real Markets**: Users' purchase demands first enter the "virtual market," where all trade demands are aggregated and analyzed, then gradually introduced into the real market. This mechanism allows the market to respond to demand changes in a stable manner, avoiding drastic price fluctuations caused by large-scale transactions.
3. **Automatic Market Balancing Mechanism**: While handling direct trade demands of users, the FMM model is also responsible for balancing the demands between trading parties. When the market accepts a trade, the demands of both parties offset each other. The remaining demand difference is used to drive market price changes. Users can receive additional compensation in balanced trades, i.e., the difference between equivalent exchange output and AMM output.
4. **Price Changes Based on the AMM Model**: After completing equivalent exchange trades, the remaining demand difference affects the market price according to the principles of the AMM model. The FMM model, while dealing with immediate demands, uses the principles of the AMM model to adjust and maintain long-term market stability.

In summary, the FMM model, through complex and efficient market mechanisms, carefully balances immediate needs with market supply and cleverly uses the concepts of time slicing and virtual markets to achieve dynamic adjustment of token prices and stable market operation. The model reflects a sensitive response to immediate market demands and demonstrates a deep understanding and effective control over long-term market stability.


---

# 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/market-control-of-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.
