Skip to content

Commit

Permalink
fix: use proper property
Browse files Browse the repository at this point in the history
  • Loading branch information
Verisana committed Oct 12, 2023
1 parent 526a999 commit 651c4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/methods/swap/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export const constructBuildTx = ({
? !params.positiveSlippageToUser
: undefined;

if ('positiveSlippage' in sanitizedParams) {
if ('positiveSlippageToUser' in sanitizedParams) {
// positiveSlippageToUser & takeSurplus together will Error in API
delete sanitizedParams.positiveSlippageToUser;
}
Expand Down

0 comments on commit 651c4d4

Please sign in to comment.