Skip to content

Commit

Permalink
fix: route generation script
Browse files Browse the repository at this point in the history
  • Loading branch information
dohaki committed Oct 18, 2024
1 parent f0a0a9c commit eba042c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/generate-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,11 @@ function transformChainConfigs(
}

// Handle WETH Polygon & other non-eth chains
if (tokenSymbol === "WETH" && !toChainConfig.tokens.includes("ETH")) {
if (
tokenSymbol === "WETH" &&
!toChainConfig.tokens.includes("ETH") &&
chainConfig.tokens.includes("ETH")
) {
return ["WETH", "ETH"];
}

Expand Down

0 comments on commit eba042c

Please sign in to comment.