Skip to content

Commit

Permalink
fix v2 supported bug (Uniswap#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsy1218 authored Feb 22, 2024
1 parent 8d643bb commit 39c054a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uniswap/smart-order-router",
"version": "3.24.2",
"version": "3.24.4",
"description": "Uniswap Smart Order Router",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/routers/alpha-router/alpha-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2081,7 +2081,7 @@ export class AlphaRouter
nativeAndSpecifiedGasTokenV3Pool: nativeAndSpecifiedGasTokenV3Pool,
};

const v2GasModelPromise = V2_SUPPORTED.includes(this.chainId)
const v2GasModelPromise = this.v2Supported?.includes(this.chainId)
? this.v2GasModelFactory.buildGasModel({
chainId: this.chainId,
gasPriceWei,
Expand Down

0 comments on commit 39c054a

Please sign in to comment.