diff --git a/src/ThalaswapRouter.ts b/src/ThalaswapRouter.ts index 89bf08d..e96c69d 100644 --- a/src/ThalaswapRouter.ts +++ b/src/ThalaswapRouter.ts @@ -222,7 +222,7 @@ class ThalaswapRouter { const tokenOutDecimals = this.coins!.find( (coin) => coin.address === route.path[route.path.length - 1].to, )!.decimals; - const args: [number, number] = + const args = route.type === "exact_input" ? [ scaleUp(route.amountIn, tokenInDecimals),