We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8f4006 commit a4d0fbdCopy full SHA for a4d0fbd
src/uv4/liquidity.py
@@ -27,11 +27,10 @@ def calculate_position_holdings(
27
price_lower: Decimal,
28
):
29
"""
30
- is_position_inrange - is position in range
31
- liquidity - the liquidity in the pool
32
- p - the current price
33
- p_upper - the price of the upper bound tick
34
- p_lower - the price of the lower bound tick
+ position_liquidity - the liquidity of user's position
+ price - the current price of pool
+ price_upper - the price of the upper bound tick of user's position
+ price_lower - the price of the lower bound tick of user's position
35
36
token0, token1 = 0, 0
37
is_in_range = price_lower <= price < price_upper
0 commit comments