# The Automated Market Maker

The AMM (Milton) is a dynamic pricing mechanism that offers quotes to users of the protocol for pay fixed rates (receive floating) or receive fixed rates (pay floating). The AMM takes the current IPOR rate at the time of quote and adds a spread taking into account a trailing moving average, the size of the trade, the risk exposure of the pool, current volatility, and reversion to the mean.

**How is the Spread Calculated?**&#x20;

The IPOR Protocol is tuned to replicate the industry-standard methods to price interest rate swaps and apply them to the blockchain environment. The following criteria are computed to come up with the fair market price for the swap:

1. Volatility
2. Recent trend
3. Demand
4. Maturity
5. Direction (long or short)

***


---

# 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.ipor.io/ipor-derivatives/automated-market-maker/the-automated-market-maker.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.
