@@ -79,13 +79,13 @@ export type DepositAndWithdrawInstruction<
7979 | AccountMeta = string ,
8080 TAccountDepositAccountsCollateralTokenProgram extends
8181 | string
82- | AccountMeta = string ,
82+ | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" ,
8383 TAccountDepositAccountsLiquidityTokenProgram extends
8484 | string
85- | AccountMeta = string ,
85+ | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" ,
8686 TAccountDepositAccountsInstructionSysvarAccount extends
8787 | string
88- | AccountMeta = string ,
88+ | AccountMeta = "Sysvar1nstructions1111111111111111111111111" ,
8989 TAccountWithdrawAccountsOwner extends string | AccountMeta = string ,
9090 TAccountWithdrawAccountsObligation extends string | AccountMeta = string ,
9191 TAccountWithdrawAccountsLendingMarket extends string | AccountMeta = string ,
@@ -113,13 +113,13 @@ export type DepositAndWithdrawInstruction<
113113 | AccountMeta = string ,
114114 TAccountWithdrawAccountsCollateralTokenProgram extends
115115 | string
116- | AccountMeta = string ,
116+ | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" ,
117117 TAccountWithdrawAccountsLiquidityTokenProgram extends
118118 | string
119- | AccountMeta = string ,
119+ | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" ,
120120 TAccountWithdrawAccountsInstructionSysvarAccount extends
121121 | string
122- | AccountMeta = string ,
122+ | AccountMeta = "Sysvar1nstructions1111111111111111111111111" ,
123123 TAccountDepositFarmsAccountsObligationFarmUserState extends
124124 | string
125125 | AccountMeta = string ,
@@ -337,9 +337,9 @@ export interface DepositAndWithdrawInput<
337337 depositAccountsReserveDestinationDepositCollateral : Address < TAccountDepositAccountsReserveDestinationDepositCollateral > ;
338338 depositAccountsUserSourceLiquidity : Address < TAccountDepositAccountsUserSourceLiquidity > ;
339339 depositAccountsPlaceholderUserDestinationCollateral ?: Address < TAccountDepositAccountsPlaceholderUserDestinationCollateral > ;
340- depositAccountsCollateralTokenProgram : Address < TAccountDepositAccountsCollateralTokenProgram > ;
341- depositAccountsLiquidityTokenProgram : Address < TAccountDepositAccountsLiquidityTokenProgram > ;
342- depositAccountsInstructionSysvarAccount : Address < TAccountDepositAccountsInstructionSysvarAccount > ;
340+ depositAccountsCollateralTokenProgram ? : Address < TAccountDepositAccountsCollateralTokenProgram > ;
341+ depositAccountsLiquidityTokenProgram ? : Address < TAccountDepositAccountsLiquidityTokenProgram > ;
342+ depositAccountsInstructionSysvarAccount ? : Address < TAccountDepositAccountsInstructionSysvarAccount > ;
343343 withdrawAccountsOwner : TransactionSigner < TAccountWithdrawAccountsOwner > ;
344344 withdrawAccountsObligation : Address < TAccountWithdrawAccountsObligation > ;
345345 withdrawAccountsLendingMarket : Address < TAccountWithdrawAccountsLendingMarket > ;
@@ -351,9 +351,9 @@ export interface DepositAndWithdrawInput<
351351 withdrawAccountsReserveLiquiditySupply : Address < TAccountWithdrawAccountsReserveLiquiditySupply > ;
352352 withdrawAccountsUserDestinationLiquidity : Address < TAccountWithdrawAccountsUserDestinationLiquidity > ;
353353 withdrawAccountsPlaceholderUserDestinationCollateral ?: Address < TAccountWithdrawAccountsPlaceholderUserDestinationCollateral > ;
354- withdrawAccountsCollateralTokenProgram : Address < TAccountWithdrawAccountsCollateralTokenProgram > ;
355- withdrawAccountsLiquidityTokenProgram : Address < TAccountWithdrawAccountsLiquidityTokenProgram > ;
356- withdrawAccountsInstructionSysvarAccount : Address < TAccountWithdrawAccountsInstructionSysvarAccount > ;
354+ withdrawAccountsCollateralTokenProgram ? : Address < TAccountWithdrawAccountsCollateralTokenProgram > ;
355+ withdrawAccountsLiquidityTokenProgram ? : Address < TAccountWithdrawAccountsLiquidityTokenProgram > ;
356+ withdrawAccountsInstructionSysvarAccount ? : Address < TAccountWithdrawAccountsInstructionSysvarAccount > ;
357357 depositFarmsAccountsObligationFarmUserState ?: Address < TAccountDepositFarmsAccountsObligationFarmUserState > ;
358358 depositFarmsAccountsReserveFarmState ?: Address < TAccountDepositFarmsAccountsReserveFarmState > ;
359359 withdrawFarmsAccountsObligationFarmUserState ?: Address < TAccountWithdrawFarmsAccountsObligationFarmUserState > ;
@@ -616,6 +616,30 @@ export function getDepositAndWithdrawInstruction<
616616 const args = { ...input } ;
617617
618618 // Resolve default values.
619+ if ( ! accounts . depositAccountsCollateralTokenProgram . value ) {
620+ accounts . depositAccountsCollateralTokenProgram . value =
621+ "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" as Address < "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" > ;
622+ }
623+ if ( ! accounts . depositAccountsLiquidityTokenProgram . value ) {
624+ accounts . depositAccountsLiquidityTokenProgram . value =
625+ "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" as Address < "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" > ;
626+ }
627+ if ( ! accounts . depositAccountsInstructionSysvarAccount . value ) {
628+ accounts . depositAccountsInstructionSysvarAccount . value =
629+ "Sysvar1nstructions1111111111111111111111111" as Address < "Sysvar1nstructions1111111111111111111111111" > ;
630+ }
631+ if ( ! accounts . withdrawAccountsCollateralTokenProgram . value ) {
632+ accounts . withdrawAccountsCollateralTokenProgram . value =
633+ "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" as Address < "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" > ;
634+ }
635+ if ( ! accounts . withdrawAccountsLiquidityTokenProgram . value ) {
636+ accounts . withdrawAccountsLiquidityTokenProgram . value =
637+ "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" as Address < "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" > ;
638+ }
639+ if ( ! accounts . withdrawAccountsInstructionSysvarAccount . value ) {
640+ accounts . withdrawAccountsInstructionSysvarAccount . value =
641+ "Sysvar1nstructions1111111111111111111111111" as Address < "Sysvar1nstructions1111111111111111111111111" > ;
642+ }
619643 if ( ! accounts . farmsProgram . value ) {
620644 accounts . farmsProgram . value = FARMS_PROGRAM_ADDRESS ;
621645 accounts . farmsProgram . isWritable = false ;
0 commit comments