@marinade.finance/kamino-sdk
Version:
28 lines (27 loc) • 856 B
TypeScript
import { TransactionInstruction, PublicKey } from '@solana/web3.js';
export interface ClosePositionAccounts {
/** The position nft owner */
nftOwner: PublicKey;
/** Unique token mint address */
positionNftMint: PublicKey;
/** Token account where position NFT will be minted */
positionNftAccount: PublicKey;
/**
* To store metaplex metadata
* Metadata for the tokenized position
*/
personalPosition: PublicKey;
/** Program to create the position manager state account */
systemProgram: PublicKey;
/** Program to create mint account and mint tokens */
tokenProgram: PublicKey;
}
/**
* Close a position, the nft mint and nft account
*
* # Arguments
*
* * `ctx` - The context of accounts
*
*/
export declare function closePosition(accounts: ClosePositionAccounts): TransactionInstruction;