Skip to content

Commit

Permalink
(hack) add list of excluded router chains
Browse files Browse the repository at this point in the history
  • Loading branch information
fengtality committed Jul 26, 2024
1 parent ce21d40 commit 3db080c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/connectors/uniswap/uniswap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@ export class Uniswap implements Uniswapish {
this._maximumHops = UniswapConfig.config.maximumHops;

this._alphaRouter = null;
if (this.chainId !== 11155111 && this.chainId !== 8453) {
const excluded_chainIds = [
11155111, // sepolia
8453, // base
56, // binance-smart-chain
42220, // celo
43114, // avalanche
];
if (this.chainId in excluded_chainIds) {
this._alphaRouter = new AlphaRouter({
chainId: this.chainId,
provider: this.chain.provider,
Expand Down

0 comments on commit 3db080c

Please sign in to comment.