Coda by Ian Macalinao
Preparing search index...
@macalinao/clients-kamino-lending
getLiquidateObligationAndRedeemReserveCollateralInstruction
Function getLiquidateObligationAndRedeemReserveCollateralInstruction
getLiquidateObligationAndRedeemReserveCollateralInstruction
<
TAccountLiquidator
extends
string
,
TAccountObligation
extends
string
,
TAccountLendingMarket
extends
string
,
TAccountLendingMarketAuthority
extends
string
,
TAccountRepayReserve
extends
string
,
TAccountRepayReserveLiquidityMint
extends
string
,
TAccountRepayReserveLiquiditySupply
extends
string
,
TAccountWithdrawReserve
extends
string
,
TAccountWithdrawReserveLiquidityMint
extends
string
,
TAccountWithdrawReserveCollateralMint
extends
string
,
TAccountWithdrawReserveCollateralSupply
extends
string
,
TAccountWithdrawReserveLiquiditySupply
extends
string
,
TAccountWithdrawReserveLiquidityFeeReceiver
extends
string
,
TAccountUserSourceLiquidity
extends
string
,
TAccountUserDestinationCollateral
extends
string
,
TAccountUserDestinationLiquidity
extends
string
,
TAccountCollateralTokenProgram
extends
string
,
TAccountRepayLiquidityTokenProgram
extends
string
,
TAccountWithdrawLiquidityTokenProgram
extends
string
,
TAccountInstructionSysvarAccount
extends
string
,
TProgramAddress
extends
Address
=
Address
<
"KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"
>
,
>
(
input
:
LiquidateObligationAndRedeemReserveCollateralInput
<
TAccountLiquidator
,
TAccountObligation
,
TAccountLendingMarket
,
TAccountLendingMarketAuthority
,
TAccountRepayReserve
,
TAccountRepayReserveLiquidityMint
,
TAccountRepayReserveLiquiditySupply
,
TAccountWithdrawReserve
,
TAccountWithdrawReserveLiquidityMint
,
TAccountWithdrawReserveCollateralMint
,
TAccountWithdrawReserveCollateralSupply
,
TAccountWithdrawReserveLiquiditySupply
,
TAccountWithdrawReserveLiquidityFeeReceiver
,
TAccountUserSourceLiquidity
,
TAccountUserDestinationCollateral
,
TAccountUserDestinationLiquidity
,
TAccountCollateralTokenProgram
,
TAccountRepayLiquidityTokenProgram
,
TAccountWithdrawLiquidityTokenProgram
,
TAccountInstructionSysvarAccount
,
>
,
config
?:
{
programAddress
?:
TProgramAddress
}
,
)
:
LiquidateObligationAndRedeemReserveCollateralInstruction
<
TProgramAddress
,
TAccountLiquidator
,
TAccountObligation
,
TAccountLendingMarket
,
TAccountLendingMarketAuthority
,
TAccountRepayReserve
,
TAccountRepayReserveLiquidityMint
,
TAccountRepayReserveLiquiditySupply
,
TAccountWithdrawReserve
,
TAccountWithdrawReserveLiquidityMint
,
TAccountWithdrawReserveCollateralMint
,
TAccountWithdrawReserveCollateralSupply
,
TAccountWithdrawReserveLiquiditySupply
,
TAccountWithdrawReserveLiquidityFeeReceiver
,
TAccountUserSourceLiquidity
,
TAccountUserDestinationCollateral
,
TAccountUserDestinationLiquidity
,
TAccountCollateralTokenProgram
,
TAccountRepayLiquidityTokenProgram
,
TAccountWithdrawLiquidityTokenProgram
,
TAccountInstructionSysvarAccount
,
>
Type Parameters
TAccountLiquidator
extends
string
TAccountObligation
extends
string
TAccountLendingMarket
extends
string
TAccountLendingMarketAuthority
extends
string
TAccountRepayReserve
extends
string
TAccountRepayReserveLiquidityMint
extends
string
TAccountRepayReserveLiquiditySupply
extends
string
TAccountWithdrawReserve
extends
string
TAccountWithdrawReserveLiquidityMint
extends
string
TAccountWithdrawReserveCollateralMint
extends
string
TAccountWithdrawReserveCollateralSupply
extends
string
TAccountWithdrawReserveLiquiditySupply
extends
string
TAccountWithdrawReserveLiquidityFeeReceiver
extends
string
TAccountUserSourceLiquidity
extends
string
TAccountUserDestinationCollateral
extends
string
TAccountUserDestinationLiquidity
extends
string
TAccountCollateralTokenProgram
extends
string
TAccountRepayLiquidityTokenProgram
extends
string
TAccountWithdrawLiquidityTokenProgram
extends
string
TAccountInstructionSysvarAccount
extends
string
TProgramAddress
extends
Address
=
Address
<
"KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD"
>
Parameters
input
:
LiquidateObligationAndRedeemReserveCollateralInput
<
TAccountLiquidator
,
TAccountObligation
,
TAccountLendingMarket
,
TAccountLendingMarketAuthority
,
TAccountRepayReserve
,
TAccountRepayReserveLiquidityMint
,
TAccountRepayReserveLiquiditySupply
,
TAccountWithdrawReserve
,
TAccountWithdrawReserveLiquidityMint
,
TAccountWithdrawReserveCollateralMint
,
TAccountWithdrawReserveCollateralSupply
,
TAccountWithdrawReserveLiquiditySupply
,
TAccountWithdrawReserveLiquidityFeeReceiver
,
TAccountUserSourceLiquidity
,
TAccountUserDestinationCollateral
,
TAccountUserDestinationLiquidity
,
TAccountCollateralTokenProgram
,
TAccountRepayLiquidityTokenProgram
,
TAccountWithdrawLiquidityTokenProgram
,
TAccountInstructionSysvarAccount
,
>
Optional
config
:
{
programAddress
?:
TProgramAddress
}
Returns
LiquidateObligationAndRedeemReserveCollateralInstruction
<
TProgramAddress
,
TAccountLiquidator
,
TAccountObligation
,
TAccountLendingMarket
,
TAccountLendingMarketAuthority
,
TAccountRepayReserve
,
TAccountRepayReserveLiquidityMint
,
TAccountRepayReserveLiquiditySupply
,
TAccountWithdrawReserve
,
TAccountWithdrawReserveLiquidityMint
,
TAccountWithdrawReserveCollateralMint
,
TAccountWithdrawReserveCollateralSupply
,
TAccountWithdrawReserveLiquiditySupply
,
TAccountWithdrawReserveLiquidityFeeReceiver
,
TAccountUserSourceLiquidity
,
TAccountUserDestinationCollateral
,
TAccountUserDestinationLiquidity
,
TAccountCollateralTokenProgram
,
TAccountRepayLiquidityTokenProgram
,
TAccountWithdrawLiquidityTokenProgram
,
TAccountInstructionSysvarAccount
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Coda by Ian Macalinao
Loading...