Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Updated code to correctly access addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
dallinlarsen committed Feb 20, 2024
1 parent 27d7888 commit 296787c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export const MIXED_ROUTE_QUOTER_V1_ADDRESSES: AddressMap = SUPPORTED_CHAINS.redu
}, {})

export const SWAP_ROUTER_02_ADDRESSES = (chainId: number) => {
if (chainId in SUPPORTED_CHAINS) {
if (SUPPORTED_CHAINS.includes(chainId)) {
const id = chainId as SupportedChainsType
return CHAIN_TO_ADDRESSES_MAP[id].swapRouter02Address ?? '0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45'
}
Expand Down

0 comments on commit 296787c

Please sign in to comment.