Skip to content

Commit

Permalink
fix(router-sdk): Update router-sdk to consumer latest v4-sdk (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilz authored Oct 3, 2024
1 parent 8f4be93 commit 4f53031
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sdks/router-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@uniswap/swap-router-contracts": "^1.3.0",
"@uniswap/v2-sdk": "^4.6.0",
"@uniswap/v3-sdk": "^3.17.0",
"@uniswap/v4-sdk": "^1.6.0"
"@uniswap/v4-sdk": "^1.9.0"
},
"devDependencies": {
"@types/jest": "^24.0.25",
Expand Down
2 changes: 1 addition & 1 deletion sdks/router-sdk/src/utils/pathCurrency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function getPathCurrency(currency: Currency, pool: TPool): Currency {

// return native currency if pool involves native version of wrapped currency (only applies to V4)
} else if (pool instanceof V4Pool) {
if (pool.currency0.wrapped.equals(currency)) {
if (pool.token0.wrapped.equals(currency)) {
return pool.token0
} else if (pool.token1.wrapped.equals(currency)) {
return pool.token1
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4633,7 +4633,7 @@ __metadata:
"@uniswap/swap-router-contracts": ^1.3.0
"@uniswap/v2-sdk": ^4.6.0
"@uniswap/v3-sdk": ^3.17.0
"@uniswap/v4-sdk": ^1.6.0
"@uniswap/v4-sdk": ^1.9.0
prettier: ^2.4.1
tsdx: ^0.14.1
languageName: unknown
Expand Down Expand Up @@ -4890,16 +4890,16 @@ __metadata:
languageName: node
linkType: hard

"@uniswap/v4-sdk@npm:^1.6.0, @uniswap/v4-sdk@npm:^1.6.3":
version: 1.8.1
resolution: "@uniswap/v4-sdk@npm:1.8.1"
"@uniswap/v4-sdk@npm:^1.6.0, @uniswap/v4-sdk@npm:^1.6.3, @uniswap/v4-sdk@npm:^1.9.0":
version: 1.9.0
resolution: "@uniswap/v4-sdk@npm:1.9.0"
dependencies:
"@ethersproject/solidity": ^5.0.9
"@uniswap/sdk-core": ^5.3.1
"@uniswap/v3-sdk": 3.12.0
tiny-invariant: ^1.1.0
tiny-warning: ^1.0.3
checksum: d19ed9242ad177fa219d78ef83a221b61dd611c9935b0cb5be28b51aeb6e100df2825a9b433462240fb2dbf1e1877c32e18b0ae3d25ec480a7d892773c0ef31d
checksum: 1483b4ab207c4ffd3f144f848884247189f0dc807f0b2fc149b7cc0bfcb1de5b758e080ed3b829008d6384b498218b9e6f4d3e5fdcaf04cb3721b5b5cef44a70
languageName: node
linkType: hard

Expand Down

0 comments on commit 4f53031

Please sign in to comment.