# DEX aggregation algorithm

WOWMAX is a platform that combines two powerful techniques - DEX aggregation and on-chain arbitrage - to optimize cryptocurrency trades. DEX aggregation means that WOWMAX breaks down a large trade into smaller parts and exchanges them on multiple decentralized exchanges simultaneously to minimize the overall negative price impact, or slippage.

WOWMAX built-in arbitrage: when a user swaps 2 tokens, WOWMAX arbitrages *all other tokens* and returns 100% profit to the user.

<figure><img src="/files/ZLKv2iEhGk0PksU0vQ29" alt=""><figcaption></figcaption></figure>

In addition to aggregation WOWMAX algorithm extracts arbitrage profits from trading other tokens between pools with stablecoins and native chain tokens, further maximizing the final outcome for the trader.&#x20;

## WOWMAX's Arbitrage Algorithm

1\)     WOWMAX scans all available DEXes to identify mispriced tokens—instances where the price of a token differs across platforms due to market inefficiencies.

2\)     WOWMAX then executes arbitrage trades, buying the undervalued token on one DEX and selling it at a higher price on another.

3\)     The profits generated from these arbitrage opportunities are returned entirely to the trader, effectively enhancing the overall outcome of the trade.

*More complex routing due to built-in arbitrage algorithm results in better rates.*

<figure><img src="/files/0TJ3i8HlcFbkI5RAHVbw" alt=""><figcaption></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://wowmax.gitbook.io/product-docs/dex-aggregator/dex-aggregation-algorithm.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.
