Skip to content

Ravnica44/OTC_Swap

Repository files navigation

OTC Swap Mini App

A fully permissionless OTC swap application built on Base as a Farcaster Mini App.

Features

  • Trustless Swaps: Exchange ETH, ERC20 tokens, and ERC721 NFTs atomically
  • No Intermediaries: Direct peer-to-peer trading with smart contract escrow
  • Custom Terms: Set expiration times and optional allowed acceptors
  • Spam Protection: 0.0001 ETH creation fee
  • Timed Refunds: 1-hour minimum hold, 15-minute refund delay after cancellation/expiration

Contract

Deployed on Base at: 0x2481BcB8EEf9f6Df6A2d0E7c8A0fBea8bB06D4C4

Development

npm install
npm run dev

Farcaster Mini App Setup

  1. Update public/.well-known/farcaster.json with your domain and Base account details
  2. Generate account association credentials at https://www.base.dev
  3. Update the embed metadata in index.html with your app URL
  4. Deploy and publish by posting your app URL in the Base app

Technology Stack

  • React + Vite
  • Farcaster Mini App SDK
  • Viem (Ethereum interaction)
  • Lexend font
  • Base blockchain

About

A fully permissionless OTC swap app built on Base, allowing users to directly exchange ETH, ERC20 tokens, or ERC721 NFTs without any intermediary or custodial control.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors