Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SafeDeal - Trustless Crypto Escrow Bot

Discord bot for secure P2P cryptocurrency trading with escrow protection.

Features

  • 🔐 Escrow Protection - Bot holds funds until deal completes
  • 🪙 LTC Support - Litecoin with more tokens coming
  • 📊 Reputation System - Track trader history
  • ⚠️ Dispute Resolution - Built-in dispute handling
  • 🔒 Private Channels - Each deal gets its own channel

Commands

Command Description
/deal Start new escrow deal
/deposit Check deposit status
/confirm <address> Release funds (buyer only)
/cancel Cancel deal (seller, pre-deposit)
/dispute <reason> Raise a dispute
/status Check deal status
/reputation [user] View trading reputation
/mydeals View your active deals

How It Works

  1. Seller runs /deal and selects crypto
  2. Seller enters buyer's Discord User ID
  3. Seller enters amount
  4. Bot creates private deal channel with escrow address
  5. Seller deposits crypto to escrow address
  6. Use /deposit to verify deposit
  7. Buyer completes their side of the trade
  8. Buyer runs /confirm <their_ltc_address>
  9. Funds released to buyer

Setup

1. Clone

git clone https://github.com/Overdusts/safedeal-bot.git
cd safedeal-bot

2. Install dependencies

pip install -r requirements.txt

3. Configure

cp .env.example .env
# add your DISCORD_TOKEN

4. Run

python run.py

Project Structure

safedeal-bot/
├── bot/
│   ├── cogs/
│   │   ├── deal.py        # escrow commands
│   │   ├── admin.py       # dispute resolution
│   │   └── reputation.py  # user reputation
│   ├── crypto/
│   │   └── ltc.py         # litecoin handler
│   ├── utils/
│   │   └── database.py    # sqlite db
│   ├── config.py
│   └── main.py
├── database/
├── .env.example
├── requirements.txt
└── run.py

Security

  • Each deal generates unique escrow wallet
  • Private keys stored in database (encrypted in production)
  • Only participants can see deal channels
  • Timeout protection prevents funds being held forever
  • Dispute system for conflict resolution

Supported Tokens

  • ✅ LTC (Litecoin)
  • 🔜 USDT (BSC)
  • 🔜 BNB
  • 🔜 SOL

License

MIT


Made by Overdusts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages