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