Function findBestLstSuperStakeIxs
- findBestLstSuperStakeIxs(__namedParameters: {
amount: BN;
driftClient: DriftClient;
jupiterClient: JupiterClient;
jupiterQuote?: QuoteResponse;
lstMarketIndex: number;
lstMint: PublicKey;
onlyDirectRoutes?: boolean;
userAccountPublicKey?: PublicKey;
}): Promise<{
ixs: TransactionInstruction[];
lookupTables: AddressLookupTableAccount[];
method: "jupiter" | "marinade";
}>
-
Returns Promise<{
ixs: TransactionInstruction[];
lookupTables: AddressLookupTableAccount[];
method: "jupiter" | "marinade";
}>
Finds best Jupiter Swap instructions for a generic lstMint
Without doing any extra steps like checking if you can get a better rate by staking directly with that LST platform