# How to use MagicSwap

MagicSwap acts as a gateway to the cross-game ecosystem, built for and by the[ Treasure DAO](https://twitter.com/Treasure_DAO) community. Use MagicSwap to obtain $ELM, sell $ELM, and provide liquidity.

## How to Swap $MAGIC to $ELM

1. Head to <https://magicswap.lol/?input=MAGIC&output=ELM>
2. Connect to your wallet holding either $MAGIC that you would like to swap
3. Enter the amount of $MAGIC you would like to swap to

<figure><img src="/files/2ohyiLbvial7Bf3DvAIq" alt=""><figcaption></figcaption></figure>

4\. Press swap and approve your $MAGIC to swap, then sign the transaction

<img src="/files/qZOouVluWm74RkIdlsTj" alt="" data-size="original">

5\. Click on confirm swap and pay gas to transact

![](/files/eHbAEJQnvfWfF8hC3RLU)

Congratulations! You now have $ELM.

## How to Provide Liquidity

1. Ensure that you have sufficient $ELM and $MAGIC in your wallet that you would like to pair\
   (If you do not, refer to the instructions above on how to obtain $ELM/MAGIC)
2. Head to <https://magicswap.lol/> and click on "pool" at the bottom of the page
3. Enter the amount of $MAGIC/$ELM you would like to pair

<figure><img src="/files/VHFFiCRZepRI7uyX6QZ5" alt=""><figcaption><p>The pool will calculate the pair accordingly, just fill in either your desired $ELM or $MAGIC amount</p></figcaption></figure>

4\. Click on 'Add Liquidity' and execute the transaction to provide liquidity and obtain LP tokens.\
(Note: You will need to execute 2 transactions approving $MAGIC and $ELM if it is your first time adding liquidity)

5\. Congratulations! You have now provided Liquidity and own MagicSwap LP tokens

![](/files/W6HnhP4BgMpBWAsCh8w5)

### Read more on how you can use MagicSwap LP tokens in Elleria!

{% content-ref url="/pages/Qu1Nm2muHeuN9WBswyQg" %}
[$ELM-MAGIC LP](/getting-started/liquidity/usdelm-magic-lp.md)
{% endcontent-ref %}


---

# 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.talesofelleria.com/getting-started/liquidity/how-to-use-magicswap.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.
