Case Study

RXDex

AMM infrastructure for synthetic asset liquidity.

20+
Liquidity Pools
2-5x
Capital Efficiency
Minimized
Impermanent Loss
SolidityTelos EVMReactTypeScriptDIA Oracle+5 more
RXDex
Project Overview

About This Project

RXDex is a custom AMM for the REAX synthetic asset ecosystem. We built specialized pool types, single-sided deposits, swap routing, LP position tracking, veREAX incentives, and risk controls for synth pairs where generic DEX assumptions break down.

Client

Timeline

Start
October 2023
Completed
September 2024
Duration
11 months
Phase 1: Research & Architecture
Phase 2: Core Protocol Development
Phase 3: Yield System & Frontend
Phase 4: Audits & Mainnet Launch

Technologies

SolidityTelos EVMReactTypeScriptDIA OraclePyth NetworkEthers.jsHardhatTheGraphVercel

Why Standard AMMs Don't Work for Synthetics

Generic AMMs do not fit every synthetic market. Stable synth pairs need concentrated liquidity near the peg. Volatile synth pairs need different risk assumptions. LPs need deposit paths that do not force exact token ratios every time they add capital. RXDex was built around those constraints: specialized pool math, single-sided deposits, route selection, LP analytics, and veREAX incentives for long-term liquidity.
Different Pools for Different Asset Types

Pool Architecture

One pool type does not fit all assets. RXDex uses multiple pool designs with separate math and parameter sets for the trading behavior of each asset group.
  • Stableswap Pools: For stable synthetic pairs, we used curve-based math that concentrates liquidity near the peg. This gives deep liquidity where it matters and keeps slippage low even on large trades between similarly-valued assets.
  • Variable Pools: Constant product pools with some extras for volatile synth pairs. We tuned the parameters to balance trade execution quality against acceptable IL levels for LPs.
  • Weighted Pools: These support custom token ratios instead of forcing a 50/50 split, which helps pools match demand and exposure targets.
  • Hybrid Pools: Hybrid designs combine elements from multiple pool types for pairs that do not fit a single curve cleanly.
4+
Pool Types
Specialized for different assets
Customizable
Pool Parameters
Per pool type requirements
Synth-Specific
Trading Efficiency
Pool design matched to asset behavior
RXDex Pool Selection Interface
RXDex Pool Selection Interface
Making It Easy to LP

Liquidity Provision

LPs should not have to rebalance wallets manually before every deposit. RXDex supports multiple deposit paths so users can add capital with one asset, balanced assets, or routed deposits depending on the pool state.
  • Single-Sided Liquidity: Users can deposit one token while the contract handles internal balancing against the pool.
  • Multi-Asset Deposits: Standard balanced deposits are supported too, with optimizations to reduce slippage during the deposit itself, especially for large adds.
  • Dynamic Deposit Routing: The router reads the deposit asset and current pool state, then selects the path that protects received LP value.
  • Position Management: We built tools for tracking your LP positions: current value, fees earned, IL exposure, and easy rebalancing. You can see exactly how your position is performing.
Multiple
Deposit Methods
For different user needs
Minimized
Entry Friction
Through single-sided options
Position-Level
Position Metrics
Value, fees, exposure, and rebalancing data
RXDex Liquidity Deposit Interface
RXDex Liquidity Deposit Interface
Rewarding Long-Term Commitment

veREAX Yield System

The yield system uses veREAX to tie incentives to longer participation. Users lock REAX, receive voting power, and direct emissions toward pools. That gives the protocol a way to reward liquidity where it is needed instead of paying the same yield everywhere.
  • LP Token Staking: Stake your LP tokens to earn additional yield from protocol fees and emissions. Straightforward mechanism that rewards LPs who keep their positions active.
  • Vote-Escrow Model: Lock REAX tokens to get veREAX. Longer locks mean bigger yield boosts, more governance weight, and a larger share of protocol fees. The math is proportional to both amount and duration.
  • Yield Boosting: veREAX holdings multiply your LP yields. This creates a flywheel where committed participants earn more, which encourages deeper, longer-lasting liquidity.
  • Gauge System: veREAX holders vote on which pools get emissions. This lets the community direct incentives where they think liquidity matters most.
  • Fee Distribution: A cut of all trading fees flows to veREAX holders. It's passive income that scales with protocol usage, not just token emissions.
RXDex LP Staking Interface
RXDex LP Staking Interface
Multiple
Yield Sources
Trading fees, emissions, boosts
Flexible
Lock Duration
Up to 4 years
Up to 2.5x
Boost Potential
For maximum commitment
Low Slippage, Good Execution

Trading Experience

The trading flow is built for synthetic pairs. The router checks available pools, shows slippage before submission, and includes protections against extractive execution paths.
  • Smart Order Routing: The router checks multiple pools and paths to find the best execution. For multi-hop trades, it picks the route that minimizes total slippage.
  • Flash Swap Support: We wired up flash swaps so arbitrageurs and advanced strategies can execute without upfront capital. This improves overall market efficiency and tightens spreads.
  • Price Impact Display: Before you confirm a trade, you see exactly how much price impact you're taking. No surprises. Users can adjust trade size or timing based on real data.
  • MEV Protection: We added protections against sandwich attacks and other MEV extraction. Traders shouldn't lose value to bots just for swapping tokens.
Optimal
Route Options
For minimal slippage
Transparent
Price Impact
Clearly communicated
Maximized
Execution Efficiency
Through smart routing
RXDex Trading Interface
RXDex Trading Interface
Multiple Ways to Earn

Yield Opportunities

We layered yield sources so LPs can earn from multiple angles without the protocol overextending on emissions. The economics are meant to be sustainable, not just flashy APRs that collapse in a month.
  • Trading Fee Yield: LPs earn a share of every swap in their pool. This is organic yield that scales directly with protocol usage. No token printing required.
  • Emissions Incentives: Token emissions bootstrap liquidity in key pools early on. The emission schedule tapers over time to keep things sustainable long-term.
  • Lockdrop Events: Periodic lockdrops give boosted rewards for users who commit liquidity for set periods. Good for bootstrapping depth in new synth pools.
  • Yield Dashboard: We built a dashboard that shows current returns, historical performance, and projected earnings across all your positions. Everything in one place.
Multiple
Yield Tiers
Based on commitment level
7-day trailing
APR Calculation
For realistic projections
Available
Compounding Options
For maximized returns
RXDex Yield Monitoring Interface
RXDex Yield Monitoring Interface
Keeping LPs and Traders Safe

Risk Management

Synthetic assets bring oracle risk, correlation risk, and depeg scenarios. RXDex adds safeguards around those cases so operators can pause, tune, or isolate markets when conditions change.
  • Impermanent Loss Mitigation: The pool math and incentive design work together to reduce IL impact. Stableswap pools in particular handle this well since liquidity concentrates where it's needed.
  • Oracle Circuit Breakers: If a price feed looks wrong or stale, trading pauses automatically. This prevents exploitation during oracle hiccups or periods of extreme volatility.
  • Gradual Parameter Changes: Pool parameters like fees and weights change gradually, not all at once. This avoids disrupting existing LPs and traders with sudden shifts.
  • Liquidity Concentration Controls: We monitor for large position holders that could manipulate price discovery. Concentration limits keep things fair.
  • Risk Visualization: The UI shows IL projections and other risk metrics clearly. Users can see what they're getting into before committing capital.
Real-time
Risk Monitoring
With automated alerts
Multiple
Safety Mechanisms
Layered protections
Gradual
Parameter Governance
For stability preservation
One Ecosystem, Connected Protocols

REAX Ecosystem Integration

RXDex isn't standalone. It's a core piece of the REAX stack. We built deep integrations so users can move between minting, trading, and lending without friction.
  • Synthetic Asset Flow: Users can mint synths on REAX, trade them on RXDex, and use them as collateral on RXLend. The full lifecycle works end-to-end without leaving the ecosystem.
  • Shared Tokenomics: REAX and veREAX work across all protocols. One token, one governance system, consistent incentives everywhere.
  • Cross-Protocol Strategies: The integration enables strategies like leveraged LP positions and yield stacking that use multiple protocols together. This is where the real capital efficiency shows up.
  • Unified Interface: Same design system, wallet connection, and navigation patterns across the REAX protocol suite.
Shared
Protocol Integrations
Across REAX ecosystem
Seamless
Cross-Protocol Flows
For unified experience
Multiple
Composable Strategies
Enabled by integration
How We Locked It Down

Security

An AMM holding real liquidity needs serious security. We layered multiple approaches, from formal methods to economic simulations to external audits.

01

Formal Verification

We formally verified the critical pool math and swap execution paths. If the core functions have bugs, everything else falls apart, so we proved them correct mathematically.

02

Incremental Testing

Ran extensive tests with different parameter configs and market conditions, including edge cases like extreme volatility and large liquidity events.

03

Sandboxed Deployment

Launched with pool size caps and raised them gradually as confidence grew. Limits potential damage during the early days when the protocol is least battle-tested.

04

Economic Simulation

Built agent-based simulations to probe for attack vectors and exploitable edge cases. Made sure the incentive structure holds up under adversarial conditions.

05

Independent Security Audits

Multiple specialized firms audited the code before launch. Every finding was addressed and verified in follow-up reviews.

06

Governance Timelock

All governance actions go through a time delay. The community can review proposals and act before changes take effect.

07

Emergency Shutdown

Graduated emergency controls can pause specific functions or shut things down orderly if a critical issue is found.

08

Bug Bounty Program

Ongoing bounty program with defined reporting paths and payouts for valid findings.

Metrics

What's Next

The roadmap adds concentrated liquidity, limit orders, deeper LP analytics, and cross-chain deployment. Each item extends the same thesis: better capital placement, clearer position data, and more trading control for synthetic markets.

$5M+
Protocol TVL
Target for first quarter
$20M monthly
Trading Volume
Projected growth
Quarterly
New Features
Continuous innovation
Cross-chain
Ecosystem Expansion
Future development
Project Gallery

Visual showcase

Gallery image 1
1 / 5
RXDex - ChainScore Labs | ChainScore Labs