Private Swap

"As a trader, I can swap 1000 ETH → USDC without any bot seeing my order or front-running my price."

Overview

Private Swap is Gelap's private AMM that ensures your trading intent remains invisible until execution.

What It Solves

  • MEV Bots: On public DEXs, bots see your order in the mempool and "sandwich" it, giving you a worse price.

  • Copy Trading: Competitors track profitable wallets to copy their moves.

  • Market Impact: Large orders panic the market before they even settle.

Public DEX vs. Gelap

How does this stack up against the status quo?

Feature
🦄 Standard Public DEX
🌑 Gelap Private Swap

Transaction Data

🔴 Fully Visible

🟢 Cryptographically Hidden

MEV Protection

❌ Vulnerable (Sandwich Attacks)

100% Protected (Zero-MEV)

Trader Identity

❌ Public Wallet Address

Identity Shielded

Strategy Secrecy

❌ Leaked immediately

Hidden from Competitors

Fees

⛽ High/Variable

Low (~$0.01 - $0.05)


How It Works

Step-by-Step Flow

  1. User has shielded tokens (already deposited into Gelap)

  2. Select token pair (e.g., USDC → ETH)

  3. Enter swap amount (only visible to user's wallet)

  4. ZK proof generated locally — proves the swap is valid without revealing details

  5. Proof submitted on-chain — contract verifies proof, executes swap

  6. User receives new shielded tokens — output tokens remain private


Activity Diagram


spinner

Sequence Flow

spinner

What's Private vs Public

Data Point
Status

Swap amount

🔒 Private

Token types

🔒 Private

User address

🔒 Private

Swap rate used

🔒 Private

Swap occurred

🌐 Public (event emitted)

Pool total liquidity

🌐 Public


Key Components

Private AMM Pool

spinner

Atomic Swap Logic (Inside ZK Proof)

Key Benefits

🔐 TRADE PRIVATELY

No one sees your positions

🛡️ MEV PROTECTED

Zero front-running possible

📊 NO TRACKING

Break address correlation

⚡ INSTANT FINALITY

Mantle L2 speed

💰 LOW FEES

~$0.01-0.05 per swap

Last updated