Overview
Hyper-CLAMM (CLAMM), as part of the Hyper-CLAMM engine in the Morpheum ecosystem (a gasless, DAG-based Layer 1 chain), is designed for decentralized spot trading in a CLOB DEX environment. It draws from Uniswap V3’s concentrated liquidity model, Balancer V3’s boosted pools and hooks, and ReClamm’s virtual balance adjustments for enhanced capital efficiency (up to 250–300× compared to constant product AMMs like Uniswap V2). This makes it ideal for scenarios where liquidity providers (LPs) want precise price range control, automatic rebalancing, and composability with staking or yield-bearing assets. Hyper-CLAMM excels in spot markets for both native L1 tokens and cross-chain synthetics (e.g. wETH, wBTC, wXRP via oracles and bridges like Hyperlane). It is not suited for perpetuals or high-leverage derivatives (those use a separate CLOB module), but it is optimized for AMM–CLOB hybrids where low-slippage trades are needed. Below are suitable use cases, categorized by volume and market cap, based on the system’s design principles. These are informed by performance bounds: sharded throughput of 10k+ TPS per shard (100–200 shards total, yielding 100k–2M TPS practical), sub-100ms latency, and capital efficiency that scales with pool depth.1. Volume-wise suitability
Hyper-CLAMM handles high concurrency via per-pool locking and DAG-async processing, making it scalable for varying trade volumes. It uses O(log n) tick iteration for swaps, ensuring efficiency even in deep books.2. Market cap–wise suitability
Market cap influences pool TVL and IL risks. Hyper-CLAMM’s virtual balances and range-bound liquidity make it efficient across caps, but it works best for assets where LPs can predict ranges (e.g. stables or established tokens).General recommendations
- Best overall: Medium–high volume mid–large cap assets (e.g. 1B cap with 5M+ daily volume) where concentrated liquidity shines—e.g. stablecoin farms or cross-chain hubs. Avoid ultra-low volume (<100K daily) unless hooks incentivize activity.
- Efficiency gains: In simulations, Hyper-CLAMM achieves 200–300× capital efficiency for volatile pairs (e.g. memes) and 100% utilization for stables via boosted pools.
- Cross-chain specifics: For tokens like ETH/BTC/XRP, use oracle-seeded virtuals without local LP funding—suitable for any volume/cap, but cap virtual dominance at 95% to mitigate oracle risks.
Implementation reference
The system designs reference a modular structure underpkg/modules/clamm/. Key areas relevant to these use cases:
- Core keeper logic — Manages state (pools, positions); integrates with DAG for async swaps. Use for volume handling (e.g. per-pool locking for high TPS).
- Swap operations — Implements exact-in/out swaps with tick iteration; optimized for medium–high volume via O(log n) algorithms.
- Liquidity management — Handles add/remove liquidity; key for boosted pools in large-cap use cases.
- ReClamm math — Virtual balance and glide calculations; essential for volatile small-cap memes.
- Hooks system — Extensibility for custom use cases (e.g. Volatility Fee Hook for mid-cap volatility).
- Query handlers — Read operations like pool info; low-latency for market cap queries.
- Integration points — Oracle integration for cross-chain synthetics; staking-interest module for staking LP shares for yield across all caps.