
Merdeka Swap
Decentralized & trustless OTC swap protocol
Demo
About
The problem it solves # MerdekaSwap **MerdekaSwap** is a decentralized, trustless Over-The-Counter (OTC) swap protocol built on the **Lisk Sepolia** Layer 2 network. It enables users to trade any ERC-20 token directly with another party without slippage, using an off-chain order book (Supabase) for gas-less order creation and on-chain settlement for complete security. ## 🌟 Features - **Trustless OTC Swaps**: Securely swap ERC-20 tokens with 0 slippage. - **Gas-less Listings**: Creating an order is free (off-chain **EIP-712** signature). Gas is only paid when filling an order. - **Private & Public Orders**: Create orders for a specific wallet or open to the public. - **Xellar Wallet Integration**: Seamless onboarding with Xellar's embedded wallet and social login. - **Fee Structure**: A configurable protocol fee (default 0.1% or 10 BPS) is charged to the **Maker** upon success. - **Non-Custodial Listings**: Assets remain in your wallet until the swap is executed. No depositing into a contract required. - **Shareable Order Links**: Every order has a unique URL, perfect for sharing via DM or social media for direct deals. - **Verified Token Badges**: Visual indicators for trusted tokens to ensure safety against impostor assets. ## 🏗 Tech Stack - **Blockchain**: Lisk Sepolia Testnet - **Smart Contract**: Solidity - **Frontend**: Next.js, Tailwind CSS, Wagmi, Viem - **Wallet**: Xellar Kit - **Backend**: Supabase ## 🛡 Security - **EIP-712 Signatures**: Orders are cryptographically signed by the Maker. - **Nonce Management**: Prevents replay attacks. - **Deadline Enforcement**: Orders automatically expire.