> For the complete documentation index, see [llms.txt](https://docs.predy.finance/predy-v2-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.predy.finance/predy-v2-documentation/predy-1/univ3-lp-hedge.md).

# UniV3 LP Hedge

### Overview

The UniV3 LP Hedge strategy allows a user to select a Uniswap V3 NFT (or specify the ID) and hedge the impermanent loss of that LP position. Predy will create a position that offsets the LP position using a combination of ETH and (ETH)² Perpetuals. This creates a long [gamma](/predy-v2-documentation/predy-1/g-gamma.md) position, refer to [that section](/predy-v2-documentation/predy-1/g-gamma.md) for further details of how the position will perform.

### How to Use the Strategy

The UniV3 LP Hedge should be used when you have an LP position that you want to hedge the impermanent loss for. This can be useful if you are generating trading/farm rewards that are greater than the cost of the funding from the UniV3 LP Hedge position, or when you are concerned about short term volatility in the pair.

### Technical Details

$$
\begin{align\*}
V&= Value \ of \ Liquidity \ Position \\
&= Value\_{wETH} + Value\_{USDC} \\
&= 2L \sqrt{p} - L \sqrt{p\_a} - p \frac {L}{\sqrt{p\_b}}
\end{align\*} \\

\begin{align\*}
Where: \\
Pair &= wETH \ and \ USDC \\
Value\_{wETH} &= Value\_{USDC} \\
p  & = ETH\_{price} \ from \ Chainlink \\
p\_a  & = ETH\_{min} \ in \ range \\
p\_b  & = ETH\_{max}  \ in \ range
\end{align\*} \\

\begin{align\*}
\\
Then, L \ is \ calculated: \\
Delta\_V &= \frac {\delta {V}}{\delta p} \\
&= L(  \frac{1}{\sqrt{p}}  -  \frac{1}{\sqrt{p\_b}}) \\

```
Gamma_V &= \frac {\delta {V}}{{\delta}^2 p} \\
&= -0.5 L *p^{-3/2} \\
```

\end{align\*}
$$

$$
\begin{align\*}
ETH-Perpetual \\

```
&Underlying Asset = ETH &\\
&Index_{price} ={S},   (S = ETH_{price} \ from \ Chainlink) &\\
\\

&\Delta \ Delta =\frac {\delta {V}}{\delta S} \approx \frac {\delta S}{\delta S}  = 1 = Constant &\\

&\Gamma \ Gamma =\frac {\delta {V}}{{\delta}^2 S} \approx \frac {\delta S}{{\delta}^2 S}  = 0 &\\
&where, \ V = Index_{price} &\\
    
\\
ETH^2-Perpetual \\

&Underlying Asset = ETH &\\
&Index_{price} ={S^2} * \frac{1}{10,000},   (S = ETH_{price} \ from \ Chainlink) &\\
\\

&\Delta \ Delta =\frac {\delta {V}}{\delta S} \approx \frac {\delta {S^2}}{\delta S}  * \frac{1}{10,000}  = 2S * \frac{1}{10,000}  &\\

&\Gamma \ Gamma =\frac {\delta {V}}{{\delta}^2 S} \approx \frac {\delta {S^2}}{{\delta}^2 S}  * \frac{1}{10,000}  = 2 * \frac{1}{10,000}  = Constant &\\

 &where, \ V = Index_{price} 

\end{align*}
```

$$
