# Batch Matching

In the context of MEV(Maximal Extractable Value), there is a significant inequality between professional validator and ordinary users that cannot be resolved. Since validator have the power to determine the order in which transactions are executed and included in a block, they can prioritize transactions that benefit their own financial interests, potentially at the expense of other market participants. Even in traditional finance, many have long been concerned about the inequality between specialized institutions and ordinary individuals, and some have made significant efforts to resolve this issue.

Cryptocurrencies, in fact, emerged out of a distrust in these traditional financial institutions. The principle of decentralization, a cornerstone of the crypto ecosystem, can also be viewed as a push against the dominance of large institutions.

This is why we handle the matching algorithm in order-book in a batch format(although technically it's a hybrid that allows for sequential matching after the batch to provide additional functionality). We want to prevent professional participants from taking advantage of common users and ensure that everyone has an equal footing in the market. Batch matching essentially eliminates order priority during the matching phase. Consequently, irrespective of the sequence in which one or more orders are sorted, each orderer receives the same matching outcome, rendering MEV attacks essentially impotent.

<figure><img src="/files/KefOKzonRrgWYONbAmTe" alt=""><figcaption><p>Concept of Batch matching</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://docs.crescent.network/introduction/crescent-dex/batch-matching.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.
