Loading video player...
MemePerpDEX - Meme Token Perpetual Contract DEX | Technical Demo A decentralized perpetual contract trading platform for meme tokens, built on BSC Testnet (Chain ID 97). Architecture: Simplified dYdX v3 — off-chain matching + on-chain settlement (SettlementV2 + PerpVault LP Pool) Demo Highlights: - On-chain deposit flow: ETH → WETH → SettlementV2.deposit() - Order matching: P2P priority + LP (PerpVault) fallback - Position management with real-time PnL (GMX standard formula) - Merkle proof withdrawal via SettlementV2.withdraw() - Risk controls: price band ±50%, LP profit cap 9%, leverage limit 2.5x/5x Tech Stack: - Smart Contracts: Solidity + Foundry (14 contracts, 373 tests passing) - Matching Engine: TypeScript (12,000+ lines) - Backend API: Go + Gin - Frontend: Next.js + React Security: 4 independent audit rounds completed - V3 Full Audit: 56/56 issues fixed (0 open) - V4 Industry Benchmark: 15/15 issues fixed (0 open) - Benchmarked against Binance, OKX, Bybit, dYdX, Hyperliquid, GMX Industry Standards: - PnL: GMX standard (delta = size × |currentPrice - avgPrice| / avgPrice) - Liquidation: Bybit standard (liqPrice = entryPrice × (1 - 1/leverage + MMR)) #MemePerpDEX #DeFi #PerpetualContract #MemeToken #BSC #DEX #Web3 #Crypto #SmartContract #Trading