Skip to content

Commit

Permalink
add sepolia to v2 supported array (Uniswap#507)
Browse files Browse the repository at this point in the history
* add sepolia to v2 supported array

* catch v2 gas model exception to return undefined v2 gas model
  • Loading branch information
jsy1218 authored Feb 27, 2024
1 parent feec759 commit 2ca4cf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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 @@ -2089,7 +2089,7 @@ export class AlphaRouter
token: quoteToken,
l2GasDataProvider: this.l2GasDataProvider,
providerConfig: providerConfig,
})
}).catch(_ => undefined) // If v2 model throws uncaught exception, we return undefined v2 gas model, so there's a chance v3 route can go through
: Promise.resolve(undefined);

const v3GasModelPromise = this.v3GasModelFactory.buildGasModel({
Expand Down
1 change: 1 addition & 0 deletions src/util/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const SUPPORTED_CHAINS: ChainId[] = [

export const V2_SUPPORTED = [
ChainId.MAINNET,
ChainId.SEPOLIA,
ChainId.ARBITRUM_ONE,
ChainId.OPTIMISM,
ChainId.POLYGON,
Expand Down

0 comments on commit 2ca4cf0

Please sign in to comment.