@marinade.finance/kamino-sdk
Version:
32 lines (31 loc) • 1 kB
TypeScript
import { TransactionInstruction, PublicKey } from "@solana/web3.js";
import BN from "bn.js";
export interface EmergencySwapArgs {
aToB: boolean;
targetLimitBps: BN;
}
export interface EmergencySwapAccounts {
adminAuthority: PublicKey;
strategy: PublicKey;
globalConfig: PublicKey;
tokenAVault: PublicKey;
tokenBVault: PublicKey;
baseVaultAuthority: PublicKey;
pool: PublicKey;
position: 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 emergencySwap(args: EmergencySwapArgs, accounts: EmergencySwapAccounts): TransactionInstruction;