UNPKG

@kamino-finance/kliquidity-sdk

Version:

Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol

29 lines 1.18 kB
import { Address, IAccountMeta, IInstruction, TransactionSigner } from "@solana/kit"; import BN from "bn.js"; import * as types from "../types"; export interface DecreaseLiquidityV2Args { liquidityAmount: BN; tokenMinA: BN; tokenMinB: BN; remainingAccountsInfo: types.RemainingAccountsInfoFields | null; } export interface DecreaseLiquidityV2Accounts { whirlpool: Address; tokenProgramA: Address; tokenProgramB: Address; memoProgram: Address; positionAuthority: TransactionSigner; position: Address; positionTokenAccount: Address; tokenMintA: Address; tokenMintB: Address; tokenOwnerAccountA: Address; tokenOwnerAccountB: Address; tokenVaultA: Address; tokenVaultB: Address; tickArrayLower: Address; tickArrayUpper: Address; } export declare const layout: import("buffer-layout").Layout<unknown>; export declare function decreaseLiquidityV2(args: DecreaseLiquidityV2Args, accounts: DecreaseLiquidityV2Accounts, programAddress?: Address): IInstruction<string, readonly (IAccountMeta<string> | import("@solana/kit").IAccountLookupMeta<string, string>)[]>; //# sourceMappingURL=decreaseLiquidityV2.d.ts.map