Skip to content

Commit

Permalink
Merge pull request #543 from paraswap/aburkut/back-1347-univ3-bug
Browse files Browse the repository at this point in the history
BACK-1347: fix Cannot read properties of undefined (reading fee) for UniV3 in getPricingFromRpc
  • Loading branch information
aburkut authored Oct 23, 2023
2 parents f299554 + 75ab59d commit 0170ffc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paraswap/dex-lib",
"version": "2.41.0",
"version": "2.41.1",
"main": "build/index.js",
"types": "build/index.d.ts",
"repository": "https://github.com/paraswap/paraswap-dex-lib",
Expand Down
2 changes: 1 addition & 1 deletion src/dex/uniswap-v3/uniswap-v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ export class UniswapV3
tokenIn: from.address,
tokenOut: to.address,
fee: pool.feeCodeAsString,
currentFee: states[index].fee.toString(),
currentFee: states[index]?.fee.toString(),
},
],
exchange: pool.poolAddress,
Expand Down

0 comments on commit 0170ffc

Please sign in to comment.