---
description: Guide to add USDT-MDX on mDEX & LP tokens inside Autofarm Vaults
---

# Provide Liquidity (MDEX) + Vaults

![MDEX Wallet Connection](https://234773140-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MO1RxykGr3EXoTdlpd_%2F-MT4bjGYN_9QoXE_T2gP%2F-MT6KtlTkqat-Dq_errp%2Fmdex%20Wallet.png?alt=media\&token=3daf10fd-bfd7-4c5e-a2da-40dc33393c06)

1\) Head over to HECO's AMM DEX – [mDEX](https://ht.mdex.com/#/swap) and connect your crypto wallet (Currently, mDEX supports MetaMask, Wallet Connect, Coinbase Wallet, Fortmatic & Portis).

![mDEX Swap UI](https://234773140-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MO1RxykGr3EXoTdlpd_%2F-MT4bjGYN_9QoXE_T2gP%2F-MT6N2VuUv39qA8NS-Tf%2FmDEX%20swap.png?alt=media\&token=fa9a4f94-a2c0-41e6-b3ed-9012a106d456)

2\) Select the relevant tokens to swap on mDEX (in this case, we're swapping USDT for some MDX tokens).\
\
If it's your first time interacting with the DEX, you will need to approve spending of USDT, afterwards, you can swap accordingly. (Remember that you need $HT Tokens for gas)

{% hint style="info" %}
Click on the gear icon (top right-hand corner) and ensure slippage is at 0.5% to get better swap rates & avoid being front-runned by bots.
{% endhint %}

![mDEX tabs](https://234773140-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MO1RxykGr3EXoTdlpd_%2F-MT4bjGYN_9QoXE_T2gP%2F-MT6O4XKbZfIY-U0TrR7%2FmDEX%20tabs.png?alt=media\&token=1c1914ff-cd1f-44ab-a791-02e0def76bfb)

![mDEX Add Liquidity](https://234773140-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MO1RxykGr3EXoTdlpd_%2F-MT4bjGYN_9QoXE_T2gP%2F-MT6OIXBX1r9lY-p-hh7%2FmDEX%20add%20LP.png?alt=media\&token=3bd700ff-d10f-488c-bc42-6b03e845c0bd)

3\) After swapping, click on the Pool tab and then the "Add Liquidity" button.

![Adding USDT-MDX Liquidity](https://234773140-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MO1RxykGr3EXoTdlpd_%2F-MT4bjGYN_9QoXE_T2gP%2F-MT6QUvtgoHZVhu89UK8%2FmDEX%20Add%20LP.png?alt=media\&token=8579a28e-ec6d-41d6-bd2c-b17cf8152e07)

4\) Key in the number of tokens you would like to supply as liquidity and click on the "Supply" button.

![LP Confirmation](https://234773140-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MO1RxykGr3EXoTdlpd_%2F-MT4bjGYN_9QoXE_T2gP%2F-MT6Qut9-Ef7lkV3L27W%2FmDEX%20LP%20Confirmation.png?alt=media\&token=2ba8a693-5332-42ca-b35f-53da9803b0dd)

5\) You'll receive a breakdown of the LP tokens that you are supplying along with the relevant information. Click on "Confirm Supply" once you've ready. Once you've supplied liquidity, you should see an equivalent amount of LP in your wallet. Head on over [here](https://autofarm.network) to deposit them into the Autofarm vaults.

![USDT-MDX Vault](https://234773140-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MO1RxykGr3EXoTdlpd_%2F-MT4bjGYN_9QoXE_T2gP%2F-MT6RqZnZkkHg3Enrz0o%2FAutofarm%20Deposit.png?alt=media\&token=3f56d035-b6a5-4b6b-aba4-b96188155fad)

6\) You should see your corresponding amount of LP tokens in the balance of the respective vault (in this case, the USDT-MDX LP Vault). Click on the "Deposit" button to deposit the LP tokens into the vault. (If it's your first time interacting with that particular vault, you will need to approve spending of your tokens)

![USDT-MDX Vault](https://234773140-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MO1RxykGr3EXoTdlpd_%2F-MT4bjGYN_9QoXE_T2gP%2F-MT6SdzUY0TFG1Uebq70%2FUSDT-MDX%20Vault.png?alt=media\&token=ede33022-5cf1-4d49-bf24-59e0fb2e492b)

7\) After depositing successfully, you should see your LP tokens reflected under the Deposit section alongside details such as the USD value of it and the % relative to the total value locked in the vault.

8\) If at any point in time you wish to withdraw your LP tokens from the vault, simply click the "Withdraw" button.
