UNPKG

@symmetry-hq/baskets-v2-sdk

Version:

Symmetry Baskets V2 SDK

16 lines (15 loc) 572 B
import { Program } from "@coral-xyz/anchor"; import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import { BasketsProgram } from "../../idl/types"; import { BasketState } from "../../state/basket"; export declare function withdrawBeforeRebalanceIx(params: { program: Program<BasketsProgram>; basketState: BasketState; payer: PublicKey; fromTokenMint: PublicKey; toTokenMint: PublicKey; amountToWithdraw: number; checkWeights: boolean; fromTokenWeight: number; toTokenWeight: number; }): Promise<TransactionInstruction>;