Overview
Ekubo is a concentrated liquidity AMM (Automated Market Maker) on StarkNet, similar to Uniswap V3. Sable integrates Ekubo in the Apex vault to generate LP fees from market making.Apex vault allocates 35% of deposits to Ekubo LP positions for maximum diversified yield.
What is Ekubo?
Ekubo is a next-generation DEX on StarkNet featuring:- Concentrated liquidity: LPs provide liquidity in specific price ranges
- Capital efficiency: Higher returns per dollar of liquidity
- LP fee generation: Earn fees from every swap
- Multiple fee tiers: 0.01%, 0.05%, 0.3%, 1% fee pools
Key Features
- Price Range Orders: Set custom min/max prices for your LP position
- Auto-compounding: Fees can be auto-compounded into positions
- Non-custodial: Users retain full control of liquidity
- ERC-721 Positions: Each LP position is an NFT
How Sable Integrates with Ekubo
Sable uses Ekubo exclusively in the Apex vault as part of its multi-strategy approach.Apex Vault Strategy
Risk Level: 5 (High)Allocation:
LP Strategy Flow
Yield Sources
The Ekubo LP component contributes to Apex’s overall yield:| Component | Yield |
|---|---|
| Vesu Leverage (40%) | ~15-20% APY |
| Ekubo LP (35%) | ~8-12% APY |
| Endur Staking (25%) | ~4-6% APY |
| Blended Total | ~12-15% APY |
Concentrated Liquidity Basics
Unlike traditional AMMs (constant productx × y = k), Ekubo uses concentrated liquidity:
Traditional AMM
Concentrated Liquidity (Ekubo)
- Higher capital efficiency: Same fees with less capital
- Better for LPs: Earn more per dollar deposited
- Better for traders: Tighter spreads, less slippage
LP Fee Generation
Ekubo LPs earn fees from every swap that passes through their liquidity range.Fee Structure
| Fee Tier | Use Case | Example Pair |
|---|---|---|
| 0.01% | Stablecoin pairs | USDC-USDT |
| 0.05% | Correlated assets | ETH-wstETH |
| 0.3% | Standard pairs | WBTC-ETH |
| 1% | Exotic/volatile pairs | Low-volume tokens |
Apex vault uses the 0.3% fee tier for WBTC-ETH or WBTC-USDC pairs.
Fee Calculation Example
Actual APY depends on trading volume, pool utilization, and how much of the volume passes through your specific price range.
Impermanent Loss Considerations
Concentrated liquidity positions are exposed to impermanent loss (IL) when prices move outside the range.What is Impermanent Loss?
Apex Vault IL Mitigation
- Tight price ranges: ±10% reduces IL exposure
- Fee income offsets IL: High volume pairs generate fees faster than IL accrues
- Correlated pairs: WBTC-ETH moves relatively in sync, reducing IL
- Diversification: Only 35% of Apex is exposed to IL risk
Contract Integration
Apex vault interacts with Ekubo to manage LP positions.Which Sable Features Use Ekubo?
Apex Vault
35% Ekubo LP AllocationApex is the only Sable vault that uses Ekubo.
- Pair: WBTC-ETH or WBTC-USDC
- Fee tier: 0.3%
- Range: ±10% around current price
- Yield: ~8-12% APY from LP fees
- Risk: Impermanent loss exposure
Frontend Integration
Sable displays Ekubo LP yield in the Apex vault APY breakdown.Risk Considerations
Benefits
- High APY: LP fees can exceed base staking/lending yields
- Diversification: Reduces correlation risk with pure lending strategies
- Market making revenue: Earn from trading volume
Risks
- Impermanent Loss: Price divergence reduces returns
- Smart contract risk: Ekubo protocol vulnerabilities
- Range management: If price moves out of range, no fees earned
- Complexity: Multi-asset LP positions harder to unwind
External Resources
Ekubo Documentation
Official Ekubo protocol documentation
Ekubo App
Ekubo DEX and LP interface
Concentrated Liquidity Guide
Learn more about concentrated liquidity mechanics
Integration Source Code:
~/workspace/source/contracts/src/apex.cairo