Documentation
    Preparing search index...

    Function increaseLiquidityQuoteByInputTokenUsingPriceDeviation

    • Get an estimated quote on the maximum tokens required to deposit based on a specified input token amount. This version allows specifying a price deviation bound to set min/max sqrt price.

      Parameters

      • inputTokenMint: Address

        The mint of the input token the user would like to deposit.

      • inputTokenAmount: Decimal

        The amount of input tokens to deposit.

      • tickLower: number

        The lower index of the position that we are depositing into.

      • tickUpper: number

        The upper index of the position that we are depositing into.

      • priceDeviation: Percentage

        The maximum price deviation allowed.

      • whirlpool: Whirlpool

        A Whirlpool helper class to help interact with the Whirlpool account.

      • tokenExtensionCtx: TokenExtensionContextForPool

      Returns IncreaseLiquidityQuoteWithPriceBounds

      An IncreaseLiquidityInput object detailing the required token amounts & liquidity values to use when calling increase-liquidity-ix.