
REAX
Building a Scalable Synthetic Asset Protocol

Transforming vision into reality
About This Project
A comprehensive case study detailing ChainScore Labs' development of REAX, a revolutionary trustless synthetic asset issuance and trading protocol built on Mantle. We engineered a sophisticated platform that enables users to mint and trade synthetic representations of real-world assets including cryptocurrencies, stocks, forex, and commodities with zero slippage. The protocol features composable pools, atomic swaps, leveraged trading up to 125x, and oracle integration with DIA, all while maintaining robust security measures and community governance.
Client
Timeline
Revolutionizing Synthetic Assets
Core Protocol Architecture
- Isolated Market Design: Implemented distinct market pools (Crypto, Stock, Forex) that operate independently with their own collateral types, risk parameters, and synthetic assets to minimize contagion risk across different asset classes.
- Shared Debt Mechanism: Engineered a system where users sharing a pool also share the debt of that pool, creating aligned incentives while enabling capital-efficient minting of diverse synthetic assets.
- Multi-Collateral Support: Designed flexible collateral mechanisms supporting various assets (USDC, ETH, TLOS) with dynamic C-Ratio requirements tailored to the risk profile of each market pool.
- Oracle Integration: Integrated multiple decentralized oracle networks including DIA and Pyth to ensure reliable, manipulation-resistant price data across all supported synthetic assets.

Synthetic Asset Creation
- Collateralized Debt Position: Implemented a system where users deposit collateral to mint synthetic assets, creating a debt position that must maintain required collateralization ratios to avoid liquidation.
- Dynamic Debt Adjustment: Designed a novel mechanism where debt is variable and adjusts based on the user's proportional share of the pool's total debt, aligning with the protocol's risk management strategy.
- Multi-Asset Support: Created support for hundreds of synthetic assets spanning cryptocurrencies (BTC, ETH, XRP), equities (AAPL, GOOGL, MSFT), currencies (EUR, JPY, GBP), and commodities, all tradable on-chain.
- Asset Expansion Framework: Designed a governance process for adding new synthetic assets that evaluates oracle availability, market demand, and risk parameters to ensure sustainable growth of available markets.


Zero-Slippage Trading Engine
Revolutionizing DeFi Exchanges
- Atomic Swaps: Engineered a novel swap mechanism that directly exchanges one synthetic asset for another at the exact oracle price, regardless of trade size, eliminating slippage entirely.
- Oracle-Based Pricing: Implemented a reliable pricing mechanism that leverages decentralized oracle networks to provide accurate, manipulation-resistant reference prices for all synthetic asset exchanges.
- Capital Efficiency: Designed the system to require no dedicated liquidity pools, allowing all collateral to work efficiently while supporting unlimited trading volume between synthetic assets.
- Trading Interface: Created an intuitive trading interface that simplifies the complex underlying mechanisms, allowing users to execute zero-slippage trades with just a few clicks.
- Price Impact Control: Implemented dynamic swap fees that adjust based on market conditions to mitigate excessive volatility while maintaining zero-slippage execution.

Advanced Trading Features
- Leverage Trading: Implemented high-efficiency leverage trading up to 125x, allowing users to amplify exposure to price movements while managing risk through advanced liquidation mechanisms.
- Perpetual Contracts: Designed a funding rate mechanism for perpetual futures that balances long and short positions, enabling continuous leveraged exposure without expiration dates.
- Options Trading: Developed on-chain call and put binary options, giving traders tools for hedging, speculation, and advanced portfolio management within the synthetic asset ecosystem.
- Structured Products: Created frameworks for indices, leveraged tokens, and other structured products that provide specialized exposure to market segments or investment strategies.

Decentralized Oracle Integration
- Multi-Oracle Strategy: Implemented a system that aggregates price data from multiple oracle networks, applying statistical methods to detect and mitigate outliers and potential manipulation attempts.
- DIA Partnership: Established a strategic integration with DIA's advanced oracle technology to deliver precise, real-time pricing data for decentralized synthetic assets, significantly expanding the range of assets available on REAX.
- Price Feed Reliability: Engineered fallback mechanisms and heartbeat checks to ensure continuous price data availability, with graceful degradation protocols during temporary oracle outages.
- Customized Update Frequencies: Implemented asset-specific update frequency requirements based on volatility profiles, ensuring optimal balance between data freshness and gas efficiency.

Risk Management Framework
Ensuring Protocol Stability
- Dynamic Collateralization Ratios: Implemented market-specific and asset-specific collateralization requirements that adjust based on historical volatility, liquidity, and other risk factors.
- Liquidation Mechanism: Designed an efficient liquidation process that incentivizes external liquidators to maintain system solvency by closing undercollateralized positions before they can impact the wider protocol.
- Global Debt Ceiling: Established configurable maximum debt limits for each asset and market pool to prevent excessive concentration risk and ensure controlled, sustainable growth.
- Emergency Circuit Breakers: Implemented circuit breakers that can temporarily pause specific protocol functions during extreme market volatility or detected oracle irregularities.
- Health Factor Monitoring: Created comprehensive monitoring tools for users to track position health, providing clear notifications as positions approach liquidation thresholds.
Intuitive User Experience
- Streamlined Onboarding: Created a guided onboarding process with clear explanations of key concepts, helping new users navigate the platform successfully from wallet connection to first trade.
- Interactive Dashboard: Designed comprehensive dashboards that provide clear visibility into positions, health metrics, and market conditions, enabling informed decision-making.
- Mobile Optimization: Engineered a responsive interface that works seamlessly across devices, ensuring users can monitor and manage positions on the go.
- Educational Resources: Integrated contextual tutorials, tooltips, and strategy guides directly into the interface to help users understand the platform's capabilities and optimize their approach.


Community Governance & Tokenomics
- Decentralized Governance: Implemented a governance system where token holders can propose and vote on protocol upgrades, parameter adjustments, and treasury allocation to ensure community-driven development.
- Revenue Sharing: Designed a mechanism where protocol-generated fees are distributed to stakeholders, creating sustainable value capture for long-term participants.
- Balanced Supply Distribution: Created a token distribution model that balances initial team and investor allocations with community mining rewards, ensuring broad and fair distribution over time.
- Incentive Alignment: Engineered staking and lockup mechanisms that encourage long-term commitment to the protocol's success while mitigating potential market volatility.
Development Process & Methodology
- Iterative Development: Employed an agile methodology with two-week sprints to deliver incremental protocol improvements while maintaining overall architectural integrity.
- Comprehensive Testing Suite: Created extensive unit, integration, and stress tests covering all protocol functions and edge cases, including simulated market crashes and oracle failures.
- Formal Verification: Applied formal verification techniques to critical contract components, mathematically proving the correctness of key functions like liquidation logic.
- Security-First Design: Followed defense-in-depth principles with multiple security layers, parameter bounds, access controls, and emergency shutdown mechanisms.
- Independent Audits: Engaged multiple specialized security firms to conduct thorough code audits and verified remediation of all identified issues.
- Public Testnet Phase: Conducted extended public testnet with bug bounties, iterating based on community feedback and real-world usage patterns.
- Incremental Deployment: Launched core functionality first with conservative parameters, gradually enabling additional features and expanding supported assets as the system proved stable.
- Continuous Monitoring: Implemented comprehensive monitoring and alerting systems to rapidly detect and respond to any unexpected protocol behavior or market conditions.
Market Impact and Future Vision
REAX represents a significant advancement in DeFi synthetic asset technology, combining the best aspects of traditional finance with blockchain innovation. The platform enables global, permissionless access to a diverse range of assets that were previously unavailable in DeFi, all with superior trading characteristics like zero slippage and high capital efficiency. As synthetic assets continue to gain adoption, REAX is positioned to play a key role in the evolution of decentralized finance by bridging traditional markets with blockchain technology. The roadmap includes expansion to additional asset classes, cross-chain deployment, enhanced governance mechanisms, and deeper integration with the broader DeFi ecosystem. By bringing the global financial system on-chain in a trustless manner, REAX is helping fulfill the promise of truly open, efficient, and accessible financial markets for everyone.
Visual showcase

Ready to build something extraordinary?
Let's discuss how we can help you achieve similar results with a custom solution tailored to your specific needs.