# Understand Aggregator

> AshSwap began as a stable-swap AMM DEX and has since grown to become one of the top two most dominating DEXes on MultiversX, with over [**$5 million in TVL**](https://defillama.com/chain/MultiversX?tvl=true) (Total Value Locked). Our ultimate goal is to become a DeFi layer on MultiversX, where we will provide all advanced features to help DeFi users maximize profits and improve liquidity.

As part of our ongoing efforts to build new products on AshSwap, we are excited to announce **AshSwap Aggregator**, the first **Dynamic Route Trading DEX Aggregator on MultiversX**.

Let’s look at how AshSwap Aggregator gives you better access to liquidity and price.

<figure><img src="https://miro.medium.com/v2/resize:fit:630/1*gGV47hHRhtXVevITiGURxg.jpeg" alt="" height="397" width="700"><figcaption></figcaption></figure>

## Demand for DEX aggregation on MultiversX <a href="#id-7731" id="id-7731"></a>

MultiversX, a young blockchain network supporting more and more decentralized financial operations, permits users to exchange tokens and other digital assets. The need for DEX aggregators on the MultiversX blockchain will grow exponentially along with the MultiversX DEX trading volume, including AshSwap. Therefore, an efficient DEX aggregator will bring great benefits to the prospering MutliversX ecosystem.

AshSwap DEX Aggregator aims to serve as the go-to trading portal on MultiversX by ensuring a seamless, efficient, and secure trading experience. Thanks to our Dynamic Trade Routing, Each user will receive a full package of information on prices, slippage, and gas fees via the most optimal route.

## What is a DEX Aggregator? <a href="#id-5a23" id="id-5a23"></a>

The only challenge that DEXs face is the lack of liquidity for smaller tokens and pricing. To solve this particular issue, DEX Aggregators are created. These aggregators are also called Liquidity Aggregators.

In simple terms, DEX aggregators are the financial protocols that give traders/investors easy access to various trading pools using a single dashboard. They rely on a complicated algorithm that considers multiple factors before selecting the best possible route for a specific token swap across the available platforms.

In the world of decentralized finance (DeFi), we have two eras of aggregator systems:

### Static Trade Routing <a href="#id-2131" id="id-2131"></a>

Aggregators help users find the best paths for swapping tokens. Users can choose the desired path, and the system usually presents them with sorted results, highlighting the most favorable options.

DEXes such as Uniswap V2 and PancakeSwap also use this routing model. In the MultiversX ecosystem, you must be familiar with this type of routing in JEXchange.

<figure><img src="https://miro.medium.com/v2/resize:fit:630/0*tuWZWnnI8fibnCqL" alt="" height="305" width="700"><figcaption></figcaption></figure>

### Dynamic Trade Routing <a href="#id-5bd5" id="id-5bd5"></a>

This is an improvement over Static Trade Routing. After finding all possible paths, the aggregator system distributes the input token amount across different paths to achieve the best possible price. Unlike Static Trade Routing, which relies on a single path, Dynamic Trade Routing provides better outcomes by leveraging multiple paths.

This type of routing has been implemented on many leading multi-chain DEX aggregators, such as 1inch, ParaSwap, and KyberSwap.

> &#x41;***shSwap is the early adopter to bring it to MultiversX.***

<figure><img src="https://miro.medium.com/v2/resize:fit:630/1*tanZsRL_DneCffa8OSAamw.png" alt="" height="452" width="700"><figcaption></figcaption></figure>

## AshSwap Aggregator: A gateway to better liquidity and pricing <a href="#d026" id="d026"></a>

### Dynamic Trade Routing Scheme <a href="#id-81d7" id="id-81d7"></a>

In a DEX, when attempting to swap a large amount of *Token A* for *Token B* using a single path, the price of *Token B* increases proportionally due to the depletion of liquidity along that path. Dynamic Trade Routing addresses this issue by dividing the large token amount into smaller portions and executing swaps across multiple paths. As a result, the price of Token B increases less compared to the previous approach.

AshSwap Aggregator has Dynamic Trade Routing, aggregating fractured liquidity across DEXs, enabling users to source the most capital-efficient liquidity to support their trades. Your trade on AshSwap is split into smaller trade sizes.

> For example, if you want to make a 1000 wEGLD-BUSD trade, it may distribute your trade into a 950 wEGLD-BUSD trade on AMM1, 30 wEGLD-BUSD trade on AMM2, and the rest on the third route.

The percent distribution of the swap is dynamically determined to give you the best price. Trade splitting helps get better prices for large trades and trades with tokens where shallow liquidity is spread out across several DEXes. You can see exactly which DEXs were involved in the trade and the amount split between them.

<figure><img src="https://miro.medium.com/v2/resize:fit:630/1*GxB0XcMCeXTlIxCNTwPPzQ.jpeg" alt="" height="314" width="700"><figcaption></figcaption></figure>

## Other key benefits of AshSwap Aggregator <a href="#d509" id="d509"></a>

### Market listing <a href="#id-916c" id="id-916c"></a>

At the moment, AshSwap Aggregator is supporting two DEXs: AshSwap and xExchange, and tokens that are available in AshSwap pools (xEGLD, wEGLD, ASH, USDT, BUSD, USDC, UTK, HTM, sEGLD, HsEGLD)

However, the system is designed to be modular and extensible, allowing for the inclusion of more new DEXes and strategies to continuously improve the search for the best price; thus, we will support more tokens and markets in the future.

### Swap in a single transaction <a href="#id-18f5" id="id-18f5"></a>

We have worked to optimize the AshSwap Aggregator so that it all fits within the transaction limits and that swapping can be done in one transaction. This is important to handle cases where the price of the token you are buying has changed and no longer fits your slippage limit. If the aggregator cannot make the trade with your slippage limit, it will roll back the transaction and return an error.

### Friendly UI <a href="#bfdb" id="bfdb"></a>

We aim to make the UI as intuitive and user-friendly as possible. The user interface of the AshSwap Aggregator remains the same as the Swap's but with a twist. We have added a window showing detailed aggregator routing. Now, users can see the entire amount split and the exchanges involved in the routing.

<figure><img src="https://miro.medium.com/v2/resize:fit:630/1*tJIgY5LDCJ7zuUsurBIz8w.png" alt="" height="997" width="700"><figcaption></figcaption></figure>

> ***Notice:** The screenshots used in this post are for demonstration purposes only. Values are not accurately presented.*

## To sum up <a href="#b9b9" id="b9b9"></a>

AshSwap is delivering a sustainable liquidity infrastructure for DeFi on MultiversX. As a liquidity hub, AshSwap Aggregator connects liquidity from various protocols and sources to provide the best token rates to traders with minimal slippage.

## For Aggregator Integration

Please kindly check our [SDKs](https://docs.ashswap.io/developers/sdks) page for further information

###


---

# 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.ashswap.io/aggregator/understand-aggregator.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.
