# 🪙Earn (LP)

Last updated

Last updated

Concentrated Liquidity

To boost capital eﬀiciency, Oyster AMM employs the **concentrated liquidity approach.** Like concentrated liquidity for the spot market, each liquidity in Oyster AMM only supports trading in a specific price range.

LPs are only required to specify the width of the price range instead of the lower and upper price of the range. Note that the lower and upper prices are symmetric in a geometric sense.

Price Range and Capital Efficiency Boost

The most common definition of capital eﬀiciency is to compare the value of assets required for the same trade size and the slippage.

$CapitalEfficiencyBoost = \frac{x \cdot P_c \cdot 2}{
x_{\text{virtual}} \cdot P_c \cdot (\alpha \cdot (1 + r_i) - \sqrt{\alpha}) \cdot {\frac{\sqrt\alpha - 1}{\sqrt\alpha}}
} = \frac{2}{
\left( \sqrt{\alpha} \cdot (1 + r_i) - 1 \right) \cdot \left({{\sqrt\alpha}-1} \right)
}$

The LP continues to receive fee income while the price is in the range.

If the AMM price goes out of the price range of concentrated liquidity, anyone could initiate the removal of that liquidity and convert that into a trading position, which goes to the account of the original owner of the concentrated liquidity. An execution fee is paid to the initiator of the removal transaction to compensate for the gas cost. Please refer to the Pair Specification section.

Net position and margin requirement

When adding liquidity to Oyster AMM, a long position is created for the liquidity, and an offset short position is created for the LP. The sum of these two positions is the net position of the LP.

As the AMM price **deviates** from the price when concentrated liquidity is created, that liquidity would inherently have **an implied net position**, which can be calculated from the equation below. Each concentrated liquidity will always meet the margin requirement for the implied net position within its chosen price range. LPs are allowed to remove the liquidity from their concentrated liquidity anytime, and that is converted into a trading position the size of the implied net position and the remaining margin, along with any fees earned. After concentrated liquidity is removed and converted, the LP can then manage the trading position accordingly.

Oyster AMM mandates that the liquidity maintains a sufficient margin to meet the initial margin requirement for the resulting net position at both price range boundaries. Please refer to the whitepaper for an in-depth discussion.

Relationship between supplied margin and liquidity provided.

$NetPosition(P) = x_{\text{virtual}} \cdot \left( \sqrt{\frac{P_c}{P}}-1 \right), \text{ if } P \in [P_a, P_b]$

$x_{real} = \frac{M}{P_c \cdot (\alpha \cdot (1 + r_i) - \sqrt{a})}$