Skip to content

Commit

Permalink
default wrapping to true.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpe7s committed Aug 22, 2024
1 parent 3b46650 commit 25d41c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ default List<Instruction> jupiterSwapChecked(final PublicKey inputMintKey,
final PublicKey outputMintKey,
final long amount,
final Instruction swapInstruction) {
return jupiterSwapChecked(inputMintKey, outputMintKey, amount, swapInstruction, false);
return jupiterSwapChecked(inputMintKey, outputMintKey, amount, swapInstruction, true);
}

Instruction jupiterSwapUncheckedAndNoWrap(final PublicKey inputMintKey,
Expand Down Expand Up @@ -90,6 +90,6 @@ default List<Instruction> jupiterSwapUnchecked(final PublicKey inputMintKey,
final long amount,
final Instruction swapInstruction) {
final var tokenProgram = solanaAccounts().readTokenProgram();
return jupiterSwapUnchecked(inputMintKey, outputMintKey, amount, swapInstruction, false);
return jupiterSwapUnchecked(inputMintKey, outputMintKey, amount, swapInstruction, true);
}
}

0 comments on commit 25d41c9

Please sign in to comment.