Swap

Arda Swap allows you to swap single or LP tokens in one click and one transaction. If swap was done manually, it would require up to 4x more transactions, to go through multiple webpages and to click at numerous places. For example:

  • You can swap USDC -> MEX in one click, one transaction, and with no additional fee. Manually, you would have to swap USDC -> EGLD, wait transaction to be executed, then swap EGLD -> MEX.

  • You can also swap MEX -> EGLD-USDC LP in one click, one transaction, and with LP maximized (see below). Manually, you would have to swap MEX -> EGLD, wait, then swap half EGLD -> USDC, wait, then create EGLD-USDC LP.

How it works

1) How Arda Swap works to swap MEX -> USDC:

  1. It finds a route from MEX to USDC on Maiar, for instance MEX->EGLD->USDC.

  2. It swaps MEX->EGLD on Maiar.

  3. It swaps EGLD->USDC on Maiar.

2) How Arda Swap works to swap EGLD-MEX LP -> EGLD-USDC LP:

  1. It breaks EGLD-MEX LP into 50% EGLD and 50% MEX, using Maiar's liquidity pool contract.

  2. It finds a route from MEX to USDC on Maiar, for instance MEX->EGLD->USDC:

    1. It swaps MEX->EGLD on Maiar.

    2. It swaps EGLD->USDC on Maiar (only the EGLD obtained from the MEX in previous step).

  3. It makes Maiar deposit liquidity of EGLD and USDC, and retrieves EGLD-USDC LP.

LP-Maximiser algorithm

If you convert USDC into EGLD-MEX LP, Arda Swap finds the exact percentage of USDC to swap into EGLD and into MEX such that all your EGLD and MEX are consumed in LP creation, leading to more EGLD-MEX LP for you!

If instead you had done the conversion without our product, not all your EGLD and MEX would have been consumed in LP creation, resulting in a suboptimal output quantity.

Fee

Single token in Input and Output: There is no fee when both the input and output of the swap are single tokens, for instance when you swap EGLD to MEX.

LP token in Input or Output: There is a 0.18% fee when either the input or the output of the swap is an LP token, for instance when you swap EGLD-MEX LP to EGLD-USDC LP.

This fee is collected by Arda for funding its development. It is on top of the inherent fees that you would have normally paid for your transactions (i.e. gas fee and Maiar swap fee).

Step-by-step guide

In this example we convert 1 EGLD into EGLD-USDC LP. First, go to the Swap page and connect your wallet using the 'Connect' button on the top right. We support the Maiar mobile app and the Maiar web extension.

Next, click on 'EGLD-MEX Maiar' to change the output token to 'EGLD-USDC'.

Back to the Swap screen, you can now enter the amount of EGLD you want to swap and click on the purple 'Swap' button to sign the transaction. You can also modify the slippage (default 1%) and see the details of the internal transactions made by our smart contract.

Finally, click "Swap" and wait until the transaction is executed, and you are good to go!

Last updated