> For the complete documentation index, see [llms.txt](https://cryptodee.gitbook.io/ausd/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cryptodee.gitbook.io/ausd/project-section/ausd-exchange.md).

# AUSD Exchange

A **DEX (Decentralized Exchange)** is a **Web3-based crypto trading platform** that allows users to **swap tokens directly with each other** — **without a central authority or intermediary** (like Binance or Coinbase).

It runs on **smart contracts** deployed on a blockchain (such as Ethereum, BNB Chain, or Polygon), ensuring that trades are **secure, transparent, and non-custodial** (you always control your wallet and funds).

<figure><img src="/files/3ZcpRLaUye2VbEVOvOdZ" alt=""><figcaption></figcaption></figure>

***

#### 🔹 **Simple Definition**

> A DEX (Decentralized Exchange) is a blockchain-powered marketplace where users trade cryptocurrencies **peer-to-peer** using **smart contracts**, not a company.

***

#### ⚙️ **How a DEX Works**

1. **You connect your crypto wallet** (e.g., MetaMask, Trust Wallet).
2. **Select tokens to swap** (e.g., swap USDT → ETH).
3. **Smart contract** automatically finds or creates a liquidity pool.
4. **You confirm the transaction** → blockchain processes it.
5. **Tokens are exchanged directly** into your wallet.

✅ No sign-up\
✅ No KYC\
✅ You keep control of your private keys

***

<figure><img src="/files/8dAFfBcl9DdgDlmQlaRF" alt=""><figcaption></figcaption></figure>

#### 💧 **Liquidity Pools**

Most DEXs use a system called an **Automated Market Maker (AMM)** — instead of matching buyers and sellers like traditional exchanges.

* Users provide pairs of tokens (e.g., ETH + USDT) to create a **liquidity pool**.
* Traders swap tokens within that pool.
* Liquidity providers (LPs) earn **trading fees** as rewards.

***

#### 🏦 **Popular DEX Platforms**

| DEX               | Blockchain  | Core Token | Features                     |
| ----------------- | ----------- | ---------- | ---------------------------- |
| **Uniswap**       | Ethereum    | UNI        | AMM-based, very popular      |
| **PancakeSwap**   | BNB Chain   | CAKE       | Low fees, yield farming      |
| **SushiSwap**     | Multi-chain | SUSHI      | Liquidity mining, staking    |
| **Curve Finance** | Ethereum    | CRV        | Optimized for stablecoins    |
| **Balancer**      | Ethereum    | BAL        | Customizable liquidity pools |

***

#### 💡 **Key Advantages**

* 🔐 **Non-custodial:** You control your funds — no exchange wallet needed.
* 🌎 **Global access:** Anyone with a wallet can trade.
* 💰 **Earn fees:** Become a liquidity provider to earn passive income.
* ⚙️ **Transparent:** All transactions are recorded on-chain.

***

#### ⚠️ **Challenges**

* Gas fees (especially on Ethereum).
* Price slippage if liquidity is low.
* Risk of **smart contract exploits** or **impermanent loss** for LPs.
* Limited fiat (cash) on/off ramps.

***

#### 🔧 **Types of DEX**

1. **AMM (Automated Market Maker)** – e.g., Uniswap, PancakeSwap
2. **Order Book DEX** – e.g., dYdX, IDEX
3. **Aggregator DEX** – e.g., 1inch, Paraswap (finds best price across many DEXs)


---

# 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://cryptodee.gitbook.io/ausd/project-section/ausd-exchange.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.
