> For the complete documentation index, see [llms.txt](https://qiedex.qie.digital/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://qiedex.qie.digital/qiedex-contracts.md).

# QIEDEX Contracts

### QIEDEX Factory&#x20;

Factory is the core of the protocol and is responsible for creating new pair contracts. The QIEDEX Factory is a smart contract that allows you to create QIEDEX liquidity pair contracts. With this factory, you can add liquidity to any QIE20 token that has an active pair. This makes it easy to get started with QIEDEX and to keep your liquidity pools up to date.

### QIEDEX Router&#x20;

Router defines how trades are being carried over different pair contracts (pools) - how many hops, which tokens, etc. but cannot change the core logic - only how trades are routed The QIEDEX Router is the primary "back-end" for the QIEDEX interface, allowing for the trading of QIE20 tokens as well as the addition and removal of liquidity. This makes it an essential tool for anyone using the QIEDEX platform. New routers can be deployed, and they are not associated with the exchange; optimizing routers leads to a more efficient trading price impact.\
\
Here is the List of smart contract address -\
\
Router address - 0x08cd2e72e156D8563B4351eb4065C262A9f553Ef\
Factory address - 0x8E23128a5511223bE6c0d64106e2D4508C08398C\
Wqie address - 0x0087904D95BEe9E5F24dc8852804b547981A9139


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://qiedex.qie.digital/qiedex-contracts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
