Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wjw12 committed Nov 12, 2023
1 parent ea94de7 commit 0ec4c41
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ThalaswapRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,11 @@ class ThalaswapRouter {
if (balanceCoinIn !== undefined && balanceCoinIn < route.amountIn) {
throw new Error("Insufficient balance");
}
(amountInArg = scaleUp(route.amountIn, tokenInDecimals)),
(amountOutArg = scaleUp(
calcMinReceivedValue(route.amountOut, slippagePercentage),
tokenOutDecimals,
));
amountInArg = scaleUp(route.amountIn, tokenInDecimals);
amountOutArg = scaleUp(
calcMinReceivedValue(route.amountOut, slippagePercentage),
tokenOutDecimals,
);
} else {
const maxSoldValueAfterSlippage = calcMaxSoldValue(
route.amountIn,
Expand Down

0 comments on commit 0ec4c41

Please sign in to comment.