Core concepts
MEV Module
Overview
A set of advanced permissioned engines that capture and redistribute MEV value back to protocol participants, ensuring there is no value leak to outside extractors, bringing capital efficiency to the next level.
MEV Solutions
| Solution | Status | Description |
|---|---|---|
| hyperRAM AMO | LIVE | Arbitrages the redeem floor and gives back to voters ensuring all value is kept inside the protocol instead of going to outside arbitragers. |
| Backrun Arbitrage | LIVE | Frontruns every arbitrage and returns value to users, protecting LPers from LVR and adverse costs from toxic MEV bots. |
| Cross-chain Arbitrage | COMING SOON | Capture price discrepancies across all supported chains including Ethereum, Arbitrum, HyperEVM, and other L1/L2s. |
| Native Market Integration | COMING SOON | Atomic arbitrage between chain-native spot markets and Ramses DEXs (e.g., Hyperliquid spot on HyperEVM). |
| Cross-venue Arbitrage | COMING SOON | Multi-step arbitrage that leverages price misalignments between protocols across all chains. |
Automated Market Operations (AMO)
Ramses' AMO system is designed to optimize protocol efficiency and maximize value for all participants through systematic arbitrage when the hyperRAM redeem floor triggers.
| Performance | Distribution |
|---|---|
| $0 captured so far | 100% of proceeds distributed to voters |
The AMO system executes a systematic arbitrage process:
- Target liquidity pool identification
- Fee privilege utilization for optimal execution
- RAM → hyperRAM conversion
- hyperRAM → xRAM redemption
- Instant exit: xRAM → RAM
- Profit distribution to hyperRAM
| Revenue Stream | Allocation |
|---|---|
| Exit Proceeds | 100% → Burn (deflationary; not distributed) |
| Arbitrage Earnings | 100% → hyperRAM compounding |
Market inefficiencies are captured by the AMO bot, ensuring value stays within RAM through systematic arbitrage and optimal execution.
- MEV executor authorization required (permissioned)
- Atomic transaction execution
- Complete on-chain verification
Backrun Arbitrage
The backrun arbitrage bot has been live and actively protecting protocol participants while capturing value that would otherwise leak to external MEV extractors.
| Performance | Time Period | Daily Average |
|---|---|---|
| $9,000 captured | 9 days | ~$1,000/day |
This value represents MEV that would have been extracted by outside arbitragers, but instead flows back to protocol participants. The bot protects liquidity providers from LVR (Loss-Versus-Rebalancing) and adverse costs from toxic MEV bots by frontrunning arbitrage opportunities and returning that value to users.
MEV Infrastructure
Ramses' MEV infrastructure represents a comprehensive arbitrage system designed to capture inefficiencies across chains, venues, and protocols—converting leaked value into sustainable revenue for the exchange and its participants.
Multi-Venue Arbitrage
| Dimension | Capability |
|---|---|
| Cross-chain arbitrage | Capture discrepancies across all supported chains including Ethereum, Arbitrum, HyperEVM, Polygon, and other L1/L2s |
| DEX-DEX arbitrage | Trade across major DEXs to eliminate cross-venue inefficiencies |
| CEX-DEX arbitrage | Bridge centralized and decentralized venues for optimal price discovery |
| Native market integration | Atomically arbitrage chain-native spot markets vs Ramses DEXs (e.g., Hyperliquid spot on HyperEVM) |
Privileged Atomic Execution
| Feature | Benefit |
|---|---|
| Zero-fee swaps | Execute arbitrage on Ramses pools at 0% fee |
| Atomic multi-protocol arbitrage | Supply → borrow → swap → repay cycles against lending protocols during oracle heartbeat delays |
| Sub-block execution | Capture opportunities that exist only within block construction |
| Example: Cross-protocol arbitrage | Flow |
|---|---|
| Chainlink >0.5% update threshold can create 0–0.8% mispricings | 0%-fee swap → supply to lending market → borrow → swap back → repay (single atomic tx) |
Dynamic Fee Integration
The MEV infrastructure works seamlessly with Ramses' dynamic fee algorithm, which monitors both DEX and CEX volumes (including chain-native spot markets where available) to optimize fee levels in real-time. This creates a feedback loop where:
- Dynamic fees protect LPs during volatile periods
- MEV bots capture arbitrage opportunities that would otherwise extract value from LPs
- Arbitrage profits flow to the protocol and ultimately to xRAM holders
- LPs are shielded from toxic flow while xRAM holders capture MEV value
The MEV infrastructure is designed to generate significant protocol revenue from cross-chain, cross-venue, and cross-protocol arbitrage, all distributed to xRAM holders through the x(3,3) model.
Stopping Reverse JIT Liquidity
What Is Reverse JIT Liquidity?
Standard just-in-time (JIT) liquidity adds liquidity immediately before a known swap and removes it immediately afterward so the position participates in that swap. Ramses uses Reverse JIT Liquidity for the inverse behavior: a short-lived, tight one-tick position is removed just before an eligible swap, reducing exposure to the trade while seeking emissions during the intervals between swaps. This behavior may be shortened conversationally to "JIT," but it is specifically Reverse JIT in these docs.
How It Works
- Short-Lived Tight Position: An LP adds liquidity in a narrow, one-tick range to concentrate emissions per unit of capital.
- Pending-Swap Monitoring: The position operator monitors for an eligible incoming swap.
- Pre-Swap Exit: The liquidity is removed immediately before that swap, so it does not support the trade or bear its inventory impact.
- Between-Swap Emissions: The strategy seeks rewards for the periods in which the position was active and may repeat around later swaps.
This can disadvantage sustained LPs who remain available for execution and bear the inventory risk of actual trading.
Why DEXs Are Vulnerable
DEXs often fall prey to this exploit because:
- Instant Reward Streaming: Rewards are paid per second and don't have proper mechanisms which require sustained liquidity.
- No Holding Period: LPs can withdraw instantly, avoiding losses from swaps.
Ramses tackles these issues head-on with targeted solutions.
Solutions
| Solution | Status | Description |
|---|---|---|
| Abuse Prevention Module | LIVE | Using quantitative subgraph data and external monitoring, the protocol utilizes this module to prevent abuse from unproductive liquidity. |
| Delayed Rewards | LIVE | Requires LPs to hold liquidity for a minimum time before claiming rewards. |
| Fee Growth | LIVE | Links rewards to swap fees earned, rewarding actual trading support. |
Ramses' solution targets Reverse JIT one-tick liquidity strategies by rewarding only LPs who provide sustained trade-supporting liquidity.