@kamino-finance/klend-sdk
Version:
Typescript SDK for interacting with the Kamino Lending (klend) protocol
24 lines • 1.18 kB
TypeScript
import { TransactionInstruction, PublicKey } from "@solana/web3.js";
import BN from "bn.js";
export interface WithdrawObligationCollateralAndRedeemReserveCollateralArgs {
collateralAmount: BN;
}
export interface WithdrawObligationCollateralAndRedeemReserveCollateralAccounts {
owner: PublicKey;
obligation: PublicKey;
lendingMarket: PublicKey;
lendingMarketAuthority: PublicKey;
withdrawReserve: PublicKey;
reserveLiquidityMint: PublicKey;
reserveSourceCollateral: PublicKey;
reserveCollateralMint: PublicKey;
reserveLiquiditySupply: PublicKey;
userDestinationLiquidity: PublicKey;
placeholderUserDestinationCollateral: PublicKey;
collateralTokenProgram: PublicKey;
liquidityTokenProgram: PublicKey;
instructionSysvarAccount: PublicKey;
}
export declare const layout: any;
export declare function withdrawObligationCollateralAndRedeemReserveCollateral(args: WithdrawObligationCollateralAndRedeemReserveCollateralArgs, accounts: WithdrawObligationCollateralAndRedeemReserveCollateralAccounts, programId?: PublicKey): TransactionInstruction;
//# sourceMappingURL=withdrawObligationCollateralAndRedeemReserveCollateral.d.ts.map