2-CLPs
2-CLPs
Description of 2-CLPs
Gyroscopeâs 2-CLPs are AMMs that concentrate liquidity within a pricing range. A given 2-CLP is parameterized by the pricing range
Given quantities of real reserves
2-CLPs can also be represented visually. The conceptual graphic below shows a constant product curve without concentrated liquidity where two price bounds are depicted as blue rectangles. A 2-CLP can be understood as âzooming intoâ the part of the curve between the price bounds. Here, the curve is substantially âflatterâ with trades having less price impact. Further documentation is available here.
conceptual graphic showing liquidity concentration of 2-CLPs
Compared with
-BQE6JH5B.gif)
Stylized representation of capital efficiency gains of 2-CLPs
Info
The notion of virtual reserves was first introduced in the YieldSpace whitepaper [3] and Uniswap v3 first introduced the concept of concentrated liquidity pools [4].
2-CLPs are best understood as a simplified design of Uniswap v3 that is tailored to a specific use-case. Specializing the design for the most-traded ranges of included assets enables a pool with (i) high capital efficiency and (ii) high gas-efficiency.
Benefits of 2-CLPs
2-CLPs offer three main benefits - capital efficiency, gas efficiency, and a simplified user experience:
- Capital efficiency: 2-CLPs improve capital efficiency of the Balancer ecosystem. 2-CLPs offer capital efficiency comparable to Uniswap v3 for Balancer pools.
- Gas efficiency: 2-CLPs are designed to be highly gas-efficient. 2-CLPs adopt the efficiently-computable constant-product pricing formula [5]. 2-CLPs are also designed to integrate with Balancer. Balancer v2 allows composing trades between several pools in a highly gas-efficient manner, laying the foundation for Balancerâs Smart Order Routing [6].
- User experience: 2-CLPs are designed to be as simple as possible. The 2-CLPs design can be considered a specialized variation of Uniswap v3, as the full generality of Uniswap v3's tick system is not always needed. This enables a simpler pool architecture and is reflected in a less-demanding user experience of providing liquidity.
Risks of 2-CLPs
Using 2-CLPs also comes with certain risks, including smart contract risk, strategy risk, and adverse selection risk. The term âimpermanent lossâ is sometimes used as an umbrella term for both strategy risk and adverse selection risk.
- Smart contract risk: As with any smart contract, there is an inherent risk that an exploit or bug puts deposited assets at risk. This risk can be reduced by conducting code audits and testing it, but it can not be fully mitigated.
- Strategy risk: By entering into the pool, LPers commit to a market making strategy, and in turn a portfolio rebalancing rule, that fundamentally has different payoffs than just holding the underlying assets or using a different rebalancing rule. As prices change, the pool sells one asset in exchange for the other [7]. In an extreme case, the relative price between the two pool assets moves permanently out of the price range. In that case, the pool is left with only the less valuable asset.
Info
For the CLPs, this strategy risk can be higher than for a pool without concentrated liquidity because the strategy allows more trading at any price within the pool's price range.
This is a side effect of capital efficiency and low price impact for traders. In an extreme case, when the value of one of the assets goes to 0, the value of the pool goes to 0 as well. The strategy risk can be reduced by choosing fundamentally related assets for the two sides of the pool (because then severe permanent shifts in relative prices are less likely and oscillations are more likely) and by carefully selecting price ranges [8].
- Adverse selection risk: In any AMM pool, if the true relative market price between assets in the pool jumps permanently, LPers incur a loss due to adverse selection. In particular, the pool is left offering 'stale' quotes at worse than true market price. The adverse selection loss will be equal to the profit to arbitrageurs for moving the pool's quoted price back into equilibrium with the rest of the market.
Info
For the CLPs, this risk can be higher than for a pool without concentrated liquidity because the CLP design offers deeper markets within the pool's price range.
In the case of a price jump, more arbitrage is enabled. If, however, the price later returns to the initial price this loss is not realized and the pool profits from trading fees.
One facet of adverse selection risk for any AMM pool, including CLPs: LPs who join a pool while the pool is off balance from the market price may incur an adverse selection loss as this contributes to an arbitrage opportunity in the pool. Best practice is to check that the spot price in the pool is near the market price when joining a pool. Should the poolâs spot price diverge from the market price significantly, an LP would benefit from swapping first in the pool to bring it to the market price before adding liquidity.
Technical Specification
To read about the mathematical specification and implementation, see here.
Notes
[1] For technical reasons, the parameters provided to the smart contract are
[2] The offsets are computed as
[3] Yield Space,âYieldSpace: An Automated Liquidity Provider for Fixed Yield Tokensâ: https://yield.is/YieldSpace.pdf
[4] Uniswap, âConcentrated liquidityâ, available at: https://docs.uniswap.org/concepts/protocol/concentrated-liquidity
[5] Paradigm, âUnderstanding Automated Market-Makers, Part 1: Price Impactâ, available at: https://research.paradigm.xyz/amm-price-impact
[6] Balancer, âSmart Order Router V2â, available at: https://docs.balancer.fi/developers/smart-order-router
[7] Technically, the pool doesn't âsellâ any assets, but merely offers them for sale.
[8] Note that multiple CLPs with different parameters can be deployed for the same asset pair to allow LPers to choose between different risk levels. In this case, the liquidity in different pools of the same pair can be combined through smart order routing along multiple paths.