Protocol Overview
xendune is a decentralized escrow marketplace built for EVM-compatible blockchains. It provides trustless infrastructure for three types of commerce: physical goods, virtual goods, and local services, as well as a C2C over-the-counter trading system for USDT↔fiat currency exchange. Currently deployed on BNB Smart Chain (BSC) and TRON (TRC20).
The Problem
Traditional online marketplaces rely on centralized intermediaries to hold funds and resolve disputes. This introduces single points of failure, censorship risk, and high transaction fees. Cross-border transactions also face additional friction from payment processing and currency conversion.
The Solution
xendune replaces centralized custody with smart contracts. When a buyer purchases a product, USDT is locked in the product contract until delivery is confirmed. If a dispute arises, platform arbitrators (operating via Gnosis Safe multisig) can intervene, with the merchant's deposit serving as additional protection for buyers.
How It Works
- Merchant Onboarding: Sellers deposit USDT (500–1,000,000) into their personal deposit contract, demonstrating commitment to doing business
- Product Listing: Sellers create products via ProductFactory, which deploys dedicated escrow contracts using EIP-1167 clones
- Purchase Order: Buyers send USDT to the product contract, creating an order with a unique orderId
- Fulfillment: Physical goods are shipped by the seller and confirmed by the buyer; virtual goods are delivered online by the seller; services are confirmed completed by the buyer
- Settlement: Platform fees are deducted, referral rewards are distributed, and the seller receives payment
- Dispute Resolution: Either party can request arbitration at any stage. Administrators adjudicate disputes and compensate buyers from the merchant's deposit when necessary
Settlement Flow
During settlement, the order amount is allocated as follows:
- Platform fee (configurable by product type, typically 3-5%)
- Referral rewards for buyer and seller inviters (if applicable)
- Remaining amount paid to the seller
All transfers use a pull-pattern safety net: if direct USDT transfer fails, the amount is stored in pendingWithdrawals, allowing users to claim it later via claimPending().
Product Types
| Type | Template Contract | Fee Rate | Auto-Confirm | Key Features |
|---|---|---|---|---|
| Physical | PhysicalProductTemplate | 3% | Yes, after shipping deadline | Logistics + delivery tracking |
| Virtual | VirtualProductTemplate | 3% | Yes, after delivery deadline | Digital goods delivery |
| Service | ServiceProductTemplate | 5% | No | Location-based services |
C2C Over-the-Counter Trading
The C2C system supports peer-to-peer USDT↔fiat currency exchange. Merchants publish buy/sell orders, with counterparties locking USDT in escrow contracts during the transaction. The fiat portion is completed off-chain, and USDT is released upon confirmation. Disputes follow the same arbitration process.