Type alias IncreaseLiquidityV2Params

IncreaseLiquidityV2Params: {
    position: PublicKey;
    positionAuthority: PublicKey;
    positionTokenAccount: PublicKey;
    tickArrayLower: PublicKey;
    tickArrayUpper: PublicKey;
    tokenMintA: PublicKey;
    tokenMintB: PublicKey;
    tokenOwnerAccountA: PublicKey;
    tokenOwnerAccountB: PublicKey;
    tokenProgramA: PublicKey;
    tokenProgramB: PublicKey;
    tokenTransferHookAccountsA?: AccountMeta[];
    tokenTransferHookAccountsB?: AccountMeta[];
    tokenVaultA: PublicKey;
    tokenVaultB: PublicKey;
    whirlpool: PublicKey;
} & IncreaseLiquidityInput

Parameters to increase liquidity for a position.

Type declaration

  • position: PublicKey
  • positionAuthority: PublicKey
  • positionTokenAccount: PublicKey
  • tickArrayLower: PublicKey
  • tickArrayUpper: PublicKey
  • tokenMintA: PublicKey
  • tokenMintB: PublicKey
  • tokenOwnerAccountA: PublicKey
  • tokenOwnerAccountB: PublicKey
  • tokenProgramA: PublicKey
  • tokenProgramB: PublicKey
  • Optional tokenTransferHookAccountsA?: AccountMeta[]
  • Optional tokenTransferHookAccountsB?: AccountMeta[]
  • tokenVaultA: PublicKey
  • tokenVaultB: PublicKey
  • whirlpool: PublicKey

Param: liquidityAmount

The total amount of Liquidity the user is willing to deposit.

Param: tokenMaxA

The maximum amount of token A to add to the position.

Param: tokenMaxB

The maximum amount of token B to add to the position.

Param: whirlpool

PublicKey for the whirlpool that the position will be opened for.

Param: position

PublicKey for the position will be opened for.

Param: positionTokenAccount

PublicKey for the position token's associated token address.

Param: positionAuthority

authority that owns the token corresponding to this desired position.

Param: tokenOwnerAccountA

PublicKey for the token A account that will be withdrawed from.

Param: tokenOwnerAccountB

PublicKey for the token B account that will be withdrawed from.

Param: tokenVaultA

PublicKey for the tokenA vault for this whirlpool.

Param: tokenVaultB

PublicKey for the tokenB vault for this whirlpool.

Param: tokenTransferHookAccountsA

Optional array of token transfer hook accounts for token A.

Param: tokenTransferHookAccountsB

Optional array of token transfer hook accounts for token B.

Param: tickArrayLower

PublicKey for the tick-array account that hosts the tick at the lower tick index.

Param: tickArrayUpper

PublicKey for the tick-array account that hosts the tick at the upper tick index.

Generated using TypeDoc