Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: fill in DEX description #53

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions pages/dex.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
# The Penumbra DEX

Penumbra's decentralized exchange (DEX) is a state of the art DEX engine,
enabling private, high-performance trading of any IBC asset.

## What makes the Penumbra DEX unique?

The Penumbra DEX features a batched swap/intent system and enables fine-grained control over liquidity positions for liquidity providers (LPs).

### Batch execution

The incoming order flow of swap intents are batched together by trading pair and executed at the end of each block. Penumbra's fast block time of 5 seconds still enables fast execution.

<picture>
<img src="./images/dex-batch-execution.png" />
</picture>

### Optimal Routing

Penumbra's DEX automatically finds the best trading path across all available liquidity.

At the end of a block, for each trading pair, the chain searches for the mathematically optimal trading path across the available liquidity, and then executes the batch of swap intents for that trading pair.

This optimal execution means that the DEX provides the best prices for swappers, routing your trade through the most efficient path, including splitting swaps across multiple pools.

### Privacy

Privacy is at the core of Penumbra, including its DEX.

Swap intents are submitted anonymously, and the swap output values are never revealed to the network - they are minted completely privately, directly into Penumbra's shielded pool.

Users can also provide liquidity by creating anonymous concentrated liquidity positions. These positions disclose only the amount of liquidity and the trading function, without linking to any identity. This allows users to privately approximate arbitrary trading functions without revealing their specific price views. This enables truly *private* trading, preventing others from copying your proprietary trading strategies.
Binary file added public/images/dex-batch-execution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.