hackquest logo

Raja Swap

RajaSwap is a decentralized, trustless Over-The-Counter (OTC) swap protocol built on the Mantle Sepolia Layer 2 network.

ビデオ

テックスタック

React
Next
Web3
Node
Solidity

説明

RajaSwap

RajaSwap is a decentralized, trustless Over-The-Counter (OTC) swap protocol built on the Mantle 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.

  • Partial Fills: Orders can be partially filled, allowing flexible trading.

  • Private & Public Orders: Create orders for a specific wallet or open to the public.

  • Order Advertising: Promote your order by paying a fee in MNT for increased visibility.

  • 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.

  • Real-time Sync: Order status is synced from blockchain to database automatically.

🏗 Tech Stack

  • Blockchain: Mantle Sepolia Testnet

  • Smart Contract: Solidity

  • Frontend: Next.js, Tailwind CSS, Wagmi, Viem

  • Wallet: Xellar Kit

Backend: Supabase (Edge Functions, PostgreSQL)

🛡 Security

  • EIP-712 Signatures: Orders are cryptographically signed by the Maker.

  • Nonce Management: Prevents replay attacks.

  • Deadline Enforcement: Orders automatically expire.

  • On-chain Verification: All transactions are verified on the blockchain before database updates.

チームリーダー
AAlif Adepe
プロジェクトリンク
業界
DeFi