Skip to content

Commit 996e029

Browse files
committed
Upgrade uniswap lib and use param to force WETH use instead of ETH
1 parent 7191a96 commit 996e029

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"paraswap": "^4.19.1",
2525
"primeicons": "^4.1.0",
2626
"primevue": "^3.5.1",
27-
"simple-uniswap-sdk": "^2.4.0",
27+
"simple-uniswap-sdk": "^2.5.0",
2828
"vue": "^3.1.1",
2929
"vue-router": "^4.0.0-0"
3030
},

web/pnpm-lock.yaml

Lines changed: 5 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/src/web3/uniswapService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ class UniswapService {
7070
// you can only support the v3 enum same works if you only want v2 quotes
7171
// if you do not supply anything it query both v2 and v3
7272
uniswapVersions: versions,
73+
useWETHAsERC20Route: true,
7374
}),
7475
});
7576
const factory = await uniswapPair.createFactory();

0 commit comments

Comments
 (0)