Peer-to-Peer

Overview
Real Exchange also combines non-custodial decentralized peer-to-peer trading and investment management tools within a single social, Instagram-like user experience. Users can discover tokenized properties and interact with other investors in an engaging visual feed. The exchange makes investing in real-world assets accessible, interactive, and community-driven, serving as the native application that showcases the strength and capabilities of the Real blockchain ecosystem.
Real Exchange enables peer-to-peer (P2P) trading and a decentralized exchange environment for real-world assets (RWAs) tokenized through the Real Protocol. Developers can integrate Real Protocol smart contracts into their dApps to enable secondary trading of fractionalized property tokens, commodities, luxury assets, and more, ensuring liquidity, price discovery, and open access.
Purpose
Enable compliant secondary trading of tokenized assets without relying on centralized intermediaries.
Provide liquidity rails for issuers and investors participating in the Real ecosystem.
Establish composability so that assets listed in Real Market are immediately usable across lending, staking, and yield products.
Key Features
Order Matching: Peer-to-peer order book and routing for asset trades.
Composability: Seamless integration with Real’s lending, staking, and custody contracts.
Compliance Hooks: Pluggable KYC/whitelist modules to enforce jurisdictional requirements.
Asset-Agnostic: Supports ERC-20 (fractions) and ERC-721/ERC-1155 (whole assets or unique items).
Cross-Chain Access: Trades can bridge to other EVM chains via Real Bridge for global liquidity.
Architecture
P2PRouter.sol: Core smart contract managing buy/sell orders and settlement logic.
AssetRegistry.sol: Ensures only verified REAL-20 tokenized assets can be listed.
ComplianceModule.sol (optional): Configurable contract to enforce KYC/AML rules.
FeeCollector.sol: Handles protocol and issuer fee distribution.
Example Flow
Issuer deploys a fractionalized RWA via RealTokenFactory.
Asset is registered in AssetRegistry and flagged as tradable.
Trader A submits a sell order for 1,000 fractions of a property token.
Trader B submits a matching buy order; the P2PRouter executes settlement.
Settlement triggers fee distribution via FeeCollector, and ownership updates on-chain.
Files
The Real Exchange peer-to-peer codebase is structured around modular smart contracts and supporting files:
contracts/market/P2PRouter.sol
contracts/market/AssetRegistry.sol
contracts/market/ComplianceModule.sol
contracts/market/FeeCollector.sol
Last updated