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?
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
User has shielded tokens (already deposited into Gelap)
Select token pair (e.g., USDC β ETH)
Enter swap amount (only visible to user's wallet)
ZK proof generated locally β proves the swap is valid without revealing details
Proof submitted on-chain β contract verifies proof, executes swap
User receives new shielded tokens β output tokens remain private
Activity Diagram
Sequence Flow
What's Private vs Public
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
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