ybBTC is the generalized description of the LP token representing a share in the Yield Basis pools. Its core feature is impermanent loss mitigation, which protects capital used for liquidity provision from depreciation in the event of volatile asset price movements.
Therefore, this section explains the design of the (ERC20 BTC - crvUSD) pool and the mathematical underpinnings of IL protection.
1. YBBTC POOL DESIGN FOR IMPERMANENT LOSS MITIGATION
ybBTC is the liquidity position (or a pool share) of the (ERC20 BTC - crvUSD) pool. This pool has three core design features:
- Basic Design: The pool uses Curve's CryptoSwap AMM concentrated liquidity pool.
- Leverage: The user's LP position (ERC20 BTC + crvUSD) is used as collateral to mint crvUSD. Minted crvUSD is deposited into the pool, increasing the position size. This applies leverage to the user's position, enhances capital efficiency, and makes the position value correspond to the BTC value, not the square root.
This design establishes a mathematical foundation for mitigating IL:
- Rebalancing: The pool's ERC20 BTC and crvUSD balances are automatically adjusted to be in the concentrated liquidity range, optimizing liquidity depth for the pool's users.
The rebalancing process optimizes liquidity by using 50% of the pool's trading fees (ERC20 BTC and crvUSD). The share of the crvUSD borrow rate is also used for rebalancing the position.
2. IN-DEPTH EXPLANATION OF IL MITIGATION
As mentioned, the leverage applied to the user's LP position in the pool is the core design feature that provides mathematical requirements for IL mitigation.
The in-depth explanation of leverage and its IL mitigation function:
-
The Yield Basis leverage algorithm uses the (ERC20 BTC - crvUSD) position as collateral for a crvUSD loan. Its size corresponds to the crvUSD part of the position and is added to the user's position, doubling the value change rate in case of BTC price movements.
-
Due to leverage, the rate of position value change (growth or decay) equals that of the unleveraged one. It squares the position value () compared to the unleveraged one, mitigating the impermanent loss in this AMM pool.
Statement: application of leverage to the position results in squaring the position value ().
Proof:
- We start from the fact that leverage means position value grows or declines faster than the unleveraged one.
The relative value changing rate for the LP position is the value change divided by the value itself . In the continuous limit it reduces to :
- is the leveraged position's value
- is the unleveraged position's value
- and are the relative rates of change for the value of the unleveraged and leveraged position
- Integrating both sides of the equation (constants are discarded):
- Exponentiating both sides of the equation:
- Squaring the position size () eliminates the Impermanent Loss in the Yield Basis pools.
Below we outline the fundamental reasons for impermanent loss in AMM pools and demonstrate how () solves it:
- Let there be a classic cpAMM pool with tokens and , all prices denominated in , and the amounts denominated by the same symbols. By definition of the cpAMM:
- Expressing the token amounts in terms of the spot price and the AMM invariant:
- Deriving the value of the liquidity provider's position in the AMM:
We demonstrated that Liquity Provider's (LP) position value in the ordinary AMM pool is proportional to .
This means that liquidity providers don't receive the full appreciation of position value corresponding to the pool's assets' price movements against each other. Even more, they have a money loss compared to holding the same asset portfolio outside the AMM pool. It is an infamous and well-known problem Impermanent Loss Problem, inherent in all AMMs.
Yield Basis solved this problem by adding the built-in leverage function to the pool design. As a result of the leverage, the Liquidity Provider's position value is the square of the originally provided liquidity to the pool ().
In turn, it leads to .
Yield Basis design leads to the following ybBTC features:
- The LP position (ybBTC token) in Yield Basis fully appreciates with the pool assets price movements
- IL is mitigated
- LPs generate yield from trading fees, avoiding capital depreciation risks typical for other AMMs.