Skip to content

Commit

Permalink
improve: rely on nonEthChains constant for initial routes (#1333)
Browse files Browse the repository at this point in the history
Signed-off-by: james-a-morris <[email protected]>
  • Loading branch information
james-a-morris authored Jan 6, 2025
1 parent 793a856 commit d5338f0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/views/Bridge/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { CHAIN_IDs } from "@across-protocol/constants";
import { BigNumber } from "ethers";
import {
Route,
Expand Down Expand Up @@ -151,10 +150,7 @@ export function getInitialRoute(filter: RouteFilter = {}) {
const routeFromFilter = findEnabledRoute({
inputTokenSymbol:
filter.inputTokenSymbol ??
(filter?.fromChain === CHAIN_IDs.ALEPH_ZERO ||
filter?.fromChain === CHAIN_IDs.POLYGON
? "WETH"
: "ETH"),
(nonEthChains.includes(filter?.fromChain ?? -1) ? "WETH" : "ETH"),
fromChain: filter.fromChain || hubPoolChainId,
toChain: filter.toChain,
});
Expand Down

0 comments on commit d5338f0

Please sign in to comment.