UNPKG

@orca-so/whirlpool-sdk

Version:

Whirlpool SDK for the Orca protocol.

17 lines (16 loc) 633 B
/// <reference types="bn.js" /> import { BN } from "@project-serum/anchor"; import { u64 } from "@solana/spl-token"; import { PublicKey } from "@solana/web3.js"; import { RemoveLiquidityQuote } from "../position/public"; import { Percentage } from "../utils/public"; export declare type InternalRemoveLiquidityQuoteParam = { positionAddress: PublicKey; tickCurrentIndex: number; sqrtPrice: BN; tickLowerIndex: number; tickUpperIndex: number; liquidity: u64; slippageTolerance: Percentage; }; export declare function getRemoveLiquidityQuote(param: InternalRemoveLiquidityQuoteParam): RemoveLiquidityQuote;