Skip to main content

dashboard.frames.public.slippage_explorer

Tuple

st

authenticator

Chain

Network

Protocol

initialize_sdks

pooltoken_service

get_protocol_sdk

get_web3_by_network_and_chain

calculate_open_position_amount

def calculate_open_position_amount(
univ3,
token0_amount: int,
token1_amount: int,
lower_price: float,
upper_price: float,
pool_address: str,
pool_price: float = None,
trust_me_im_an_engineer: bool = False,
adjust_amounts: bool = True,
adjust_threshold: float = 0.001
) -> Tuple[Tuple[int, int], Tuple[float, float]]

protocol

chain

network

spot_rate

amount0_b10

amount1_b10

amount0_native

amount1_native

percent_bounds

lower_price

upper_price

percent_price

new_spot_rate

amount0_calculated

amount1_calculated

calculated_percent0

calculated_percent1