Hedging Impermanent Loss with Power Perpetuals

Deri Protocol
6 min readMar 11, 2022

--

As explained in the introduction paper, Power Perps have a very special and important property: its Gamma is independent of the underlying prices:

where

  • T: the funding period. T=1week in our implementation.
  • h=r+𝜎²/2
  • r: the risk-free interest rate
  • 𝜎: the volatility

In the DeFi world, it is usually safe to assume r = 0. And since volatility is relatively stable for most of the time, the Gamma stays a constant for most of the time. Having an (almost) constant Gamma leads to a few handy use-cases. In this article, we will explain how to hedge the impermanent loss of providing liquidity to CPMM (constant-product marking making) such as Uniswap or Pancake.

Impermanent Loss from the Greeks Perspective

Ever since the launch of Uniswap, there have been tons of materials discussing the impermanent loss (IL) issue of CPMM. We are not repeating the discussions here but just would like to point out that the difficulty of hedging the IL is the gamma part of the liquidity providers’ positions. Let’s take the ETH-USDC pair as an example. Let’s assume you provide x₀ ETH and y₀ USDC to the CPMM when ETHUSDC=S=4000, e.g. x₀ = 1, y₀ = 4000. When the price of ETH S changes, you would have x ETH and y USDC with x · y = x₀· y₀ = K = 4000. It’s easy to see x and y are functions of the ETH price S:

The value of your provided liquidity (or the value of your LP tokens) is:

Therefore, we have the Delta and the Gamma of your LP tokens as follows:

From the Greeks’ perspective, it is the Gamma part that complicates the impermanent loss. If we hedge IL with a linear derivative such as futures, we would need to rebalance the hedging position quite frequently to adapt to the rapidly changing Delta. Such a process is called dynamic Delta hedging (DDH), causing a substantial cost. A better solution would be to adopt a Gamma tool to hedge the Gamma part specifically. And Power Perps is a perfect Gamma tool for this purpose thanks to its (almost) constant Gamma.

Hedging IL with Powers and Futures

Let’s still assume the initial liquidity you provide to a CPMM (Uniswap or Pancake) is (x₀ ETH, y₀ USDC ): x₀ = 1, y₀ = 4000. To hedge the Gamma, you would need w units of ETH² to make the portfolio Gamma-neutral:

And then you would need to take z units of ETHUSD futures to make the portfolio Delta-neutral:

Numerically, at the point of (x₀ = 1, y₀ = 4000), assuming volatility 𝜎=100%, this means:

  • Providing 1ETH+4000USDC to the ETH-USDC pair
  • Long 0.0000613 units of ETH^2 (equals to 0.0613 units of mETH^2)
  • Short 1.5 units of ETHUSD futures

Please note this only ensures the portfolio has 0 Delta and 0 Gamma at the current point. Nevertheless, a portfolio with 0 Delta and 0 Gamma at (x₀, y₀) would have its value stable in a very wide range of price around (x₀, y₀). The figure below illustrates the PnL of the portfolio with respect to ETH price change. Please note the red curve (portfolio value) stays flat in a very wide range.

Cost vs Income

Constructing the portfolio above comes at a cost. Usually, both the futures and powers positions would incur funding fees. However, the expectation of the futures funding fee is 0. Therefore, we only consider the funding fee of the powers. Per the pricing of powers, the theoretical funding fee of 1 unit of powers for one funding period is:

This leads to an annualized cost in terms of a ratio of the LP value:

Let’s put this annualized cost into numerical scenarios:

Now this business turns into a very simple math problem: would the income of liquidity-providing cover the cost of hedging?

As long as the income from liquidity-providing is greater than the cost, the portfolio is making profits.

The income of liquidity providing depends on the transaction volume of the CPMM. On Uniswap, as of today, the annualized income ratio for the ETH-USDC pair is:

(Data source: https://info.uniswap.org/, as of 2022–3–10)

So the short answer to the question: it’s profitable indeed. As of the last 7 days, this income ratio beats even the most costly scenario in the table above.

Please note the trading volume of last 7 days has been at a relatively low level. For most of the time, the trading volume has been higher than the current level.

(Data source: https://info.uniswap.org/, as of 2022–3–10)

Other Examples

WBTC-USDC @Uniswap

Now let’s look at the case of providing liquidity to the WBTC-USDC pair, it is easy to have a similar numerical analysis. Assuming the entry point of liquidity providing is BTCUSD = 40000, we have the following annualized cost ratio in different scenarios:

As of last 7 days, the annualized income ratio is:

(Data source: https://info.uniswap.org/, as of 2022–3–10)

WBNB-BUSD, BTCB-BUSD @Pancakeswap

Now let’s look at 2 sample pairs from another CPMM, Pancakeswap: WBNB-BUSD and BTCB-BUSD. For the most active trading pair WBNB-BUSD, assuming the entry point of liquidity providing is BNBUSD = 400, then we have the following annualized cost ratio in different scenarios:

As of last 7 days, the annualized income ratio is 16.35%, still profitable for most of the scenarios.

(Data source: https://pancakeswap.finance/info, as of 2022–3–10)

As for the BTCB-BUSD pair, as of last 7 days, the annualized income ratio is:

This income is profitable at the current market condition (volatility ~ 80%), but would become unprofitable for some of the worse scenarios (e.g. volatility turns into 150%). So liquidity providers adopting this strategy would need to keep a closer watch on the market condition change for providing liquidity to the BTCB-BUSD pair on Pancakeswap.

  • Note 1: The extra CAKE reward by Pancakeswap has not been taken into account in this analysis.
  • Note 2: In practice, the transaction volume on CPMM and the volatility are positively correlated. In a more volatile market condition, even though you are paying a higher funding fee for the powers, most likely you would also earn more income from the CPMM due to a higher trading volume. In other words, the strategy would still very likely be profitable in such scenarios.

--

--

Deri Protocol

Deri Protocol = (Perpetual Futures + Everlasting Options) x Decentralized.