# Overview

Decentralized exchanges (DEXes) are decentralized financial (DeFi) platforms where cryptocurrency is traded through peer-to-peer transactions in exchange for other cryptocurrencies for an equivalent value.

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

Born in 2012, the XRP Ledger possibly has the world’s oldest DEX. The exchange allows users to buy and sell tokens for XRP or other tokens, with minimal fees charged to the network itself (not paid out to any party).

Ripple has recently [**implemented the long-awaited automated market maker (AMM) feature in a devnet**](https://xrpl.org/automated-market-makers.html) that allows those that provide liquidity for automated market makers to take a large share of the profits that would normally go to arbitrageurs.

This feature has yet to roll out to the production mainnet, but when it goes live it will enable liquidity providers to:

* **Redeem their LP Tokens for a share of the assets in the AMM's pool**, including fees collected
* **Vote to change the AMM's fee settings**. The votes are weighted based on how many LP Tokens the voters hold
* **Bid some of their LP Tokens to receive a temporary discount** on the AMM's trading fees

‍*Want to learn more about decentralized exchanges on Ripple?*&#x20;

Check out our comparison of available XRP DEXes.


---

# 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://monet-society.gitbook.io/ripple/decentralized-exchanges/overview.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.
