# Dex Router

The Dex Router management section is where you will be able to start trading on your project, and much more. In this section you can:

1. Enable trading
2. Enable or disable the auto swap
3. Update the minimum swap percentage
4. Update the dex router address
5. Update the wallet that will receive LP tokens
6. Renounce the DexRouterV2 function

<figure><img src="https://2529559254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDhfU6YPTxz47qre87lVR%2Fuploads%2FyrZKQ1YqmvLFLZ4WZ6cO%2Fimage.png?alt=media&#x26;token=b745ae95-d303-44bb-bca1-18383f245b28" alt=""><figcaption></figcaption></figure>

To enable trading simply select the <img src="https://2529559254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDhfU6YPTxz47qre87lVR%2Fuploads%2FqoUzEvp0uSfKXFSLGVdS%2Fimage.png?alt=media&#x26;token=7c5d563f-c091-4832-9fc9-1a9422d2eaa7" alt="" data-size="line"> button and approve the transaction in your Web3 Wallet.&#x20;

{% hint style="info" %}
Once this transaction is approved on the blockchain your token will be able to be traded. Be sure to add liquidity to your token before you enable trading.

Have a good plan in place before enabling trading and understand what type of launch you want. Stealth, fair, and understand whether you want snipers to attack your project.
{% endhint %}

***

Updating the autoswap is an important part of your launch, and can help your contract to swap taxes to your wallet at different times depending on your token value and market cap. When you have a lower marketcap you want to have smaller autoswaps so the impact on your chart (if you are swapping to another token) is lessened, as these will show up as sells by the deployer wallet.

To change the swap, enter the swap percentage in the *Min Swap* textbox and select the <img src="https://2529559254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDhfU6YPTxz47qre87lVR%2Fuploads%2F6apN11nhQKJWnREmEFQZ%2Fimage.png?alt=media&#x26;token=5e4e6169-3521-410f-abf6-b7aec5a9502f" alt="" data-size="line"> button.

{% hint style="info" %}
When setting your autoswap you want to calculate through DexScreener the value in USD that the autoswap amount is at the current price. Then, compare the ratio of that dollar value to the MarketCap value and make sure it is less than 1%.

You don't wnat the contract to sell $1000 on a $60,000 MC project as it would significantly hurt your chart.
{% endhint %}

***

To change the dex router address, enter the new dex router address in the *Dex Router* textbox and select the <img src="https://2529559254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDhfU6YPTxz47qre87lVR%2Fuploads%2FyCjVPTPJrEchGHD4uTkV%2Fimage.png?alt=media&#x26;token=4c828ea2-07c4-4c90-8b9d-a9049b4e12cb" alt="" data-size="line"> button.

To change the wallet to receive the LP tokens, enter the new wallet address in the *LP Tokens Receiver* textbox and select the <img src="https://2529559254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDhfU6YPTxz47qre87lVR%2Fuploads%2FRzeKKoxtnvyCa11m9RtQ%2Fimage.png?alt=media&#x26;token=c5c695b5-fcf5-4feb-a4f1-4d52aa4ce565" alt="" data-size="line"> button.

***

To renounce the Dex Router function, simply select the <img src="https://2529559254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDhfU6YPTxz47qre87lVR%2Fuploads%2FP8kft1kMzSMPEqzLsXRK%2Fimage.png?alt=media&#x26;token=cbcc1572-87b7-43b9-b062-5836089ece1b" alt="" data-size="line"> button and approve the transaction in your Web3 Wallet, keeping in mind that once renounced, none of the variables within this function can no longer be edited.


---

# 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://chainfactory.gitbook.io/chainfactory/factory-orientation/deployed-contracts/deploy-management/dex-router.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.
