Type alias OpenPositionParams

OpenPositionParams: {
    funder: PublicKey;
    owner: PublicKey;
    positionMintAddress: PublicKey;
    positionPda: PDA;
    positionTokenAccount: PublicKey;
    tickLowerIndex: number;
    tickUpperIndex: number;
    whirlpool: PublicKey;

Parameters to open a position in a Whirlpool.

Type declaration

  • funder: PublicKey
  • owner: PublicKey
  • positionMintAddress: PublicKey
  • positionPda: PDA
  • positionTokenAccount: PublicKey
  • tickLowerIndex: number
  • tickUpperIndex: number
  • whirlpool: PublicKey

Param: whirlpool

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

Param: ownerKey

PublicKey for the wallet that will host the minted position token.

Param: positionPda

PDA for the derived position address.

Param: positionMintAddress

PublicKey for the mint token for the Position token.

Param: positionTokenAccount

The associated token address for the position token in the owners wallet.

Param: tickLowerIndex

The tick specifying the lower end of the position range.

Param: tickUpperIndex

The tick specifying the upper end of the position range.

Param: funder

The account that would fund the creation of this account

Generated using TypeDoc