@1llet.xyz/erc4337-gasless-sdk 0.4.60 → 0.4.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2889,7 +2889,7 @@ var UniswapService = class {
|
|
|
2889
2889
|
args: [params]
|
|
2890
2890
|
});
|
|
2891
2891
|
const amountIn = result[0];
|
|
2892
|
-
return amountIn *
|
|
2892
|
+
return amountIn * 105n / 100n;
|
|
2893
2893
|
} catch (e) {
|
|
2894
2894
|
console.error("Quote failed", e);
|
|
2895
2895
|
throw new Error("Failed to quote USDC for ETH swap");
|
|
@@ -2904,8 +2904,8 @@ var UniswapService = class {
|
|
|
2904
2904
|
tokenIn: USDC_ADDRESS,
|
|
2905
2905
|
tokenOut: WETH_ADDRESS,
|
|
2906
2906
|
fee: 500,
|
|
2907
|
-
recipient:
|
|
2908
|
-
// Router
|
|
2907
|
+
recipient: UNISWAP_V3_ROUTER,
|
|
2908
|
+
// Router must hold WETH to unwrap it
|
|
2909
2909
|
amountOut: amountOutETH,
|
|
2910
2910
|
amountInMaximum: maxAmountInUSDC,
|
|
2911
2911
|
sqrtPriceLimitX96: 0n
|