@marinade.finance/kamino-sdk
Version:
35 lines (34 loc) • 1.22 kB
TypeScript
import { TransactionInstruction, PublicKey } from '@solana/web3.js';
import BN from 'bn.js';
export interface ResetSqrtPriceArgs {
sqrtPriceX64: BN;
}
export interface ResetSqrtPriceAccounts {
/** Only admin has the authority to reset initial price */
owner: PublicKey;
/** Initialize an account to store the pool state */
poolState: PublicKey;
/** Token_0 vault */
tokenVault0: PublicKey;
/** Token_1 vault */
tokenVault1: PublicKey;
/** The program account for the most recent oracle observation */
observationState: PublicKey;
/** The destination token account for receive amount_0 */
recipientTokenAccount0: PublicKey;
/** The destination token account for receive amount_1 */
recipientTokenAccount1: PublicKey;
/** SPL program to transfer out tokens */
tokenProgram: PublicKey;
}
export declare const layout: any;
/**
* Reset a pool sqrt price, only can be reset if the pool hasn't be used.
*
* # Arguments
*
* * `ctx`- The context of accounts
* * `sqrt_price_x64` - the reset sqrt price of the pool as a Q64.64
*
*/
export declare function resetSqrtPrice(args: ResetSqrtPriceArgs, accounts: ResetSqrtPriceAccounts): TransactionInstruction;