@marinade.finance/kamino-sdk
Version:
32 lines (31 loc) • 1.06 kB
TypeScript
import { TransactionInstruction, PublicKey } from "@solana/web3.js";
import BN from "bn.js";
export interface SwapUnevenVaultsArgs {
targetLimitBps: BN;
}
export interface SwapUnevenVaultsAccounts {
actionsAuthority: PublicKey;
strategy: PublicKey;
globalConfig: PublicKey;
tokenAVault: PublicKey;
tokenBVault: PublicKey;
baseVaultAuthority: PublicKey;
pool: PublicKey;
position: PublicKey;
raydiumPoolConfigOrBaseVaultAuthority: PublicKey;
poolTokenVaultA: PublicKey;
poolTokenVaultB: PublicKey;
/** Payer must send this correctly. */
tickArray0: PublicKey;
/** Payer must send this correctly. */
tickArray1: PublicKey;
/** Payer must send this correctly. */
tickArray2: PublicKey;
oracle: PublicKey;
poolProgram: PublicKey;
scopePrices: PublicKey;
tokenInfos: PublicKey;
tokenProgram: PublicKey;
}
export declare const layout: any;
export declare function swapUnevenVaults(args: SwapUnevenVaultsArgs, accounts: SwapUnevenVaultsAccounts): TransactionInstruction;