Skip to content

Commit

Permalink
Use constant defined ethereum address
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed Jul 29, 2024
1 parent a5fd046 commit bdeabe5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/synapse-interface/constants/tokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import * as allPool from '@constants/tokens/poolMaster'
import { GMX, ETH, USDC, USDT, WETH } from '@constants/tokens/bridgeable'
import { SYN_ETH_SUSHI_TOKEN } from '@constants/tokens/sushiMaster'
import { Chain, Token } from '@utils/types'

import { CHAINS_BY_ID } from '@/constants/chains'
import { ETHEREUM_ADDRESS } from '@constants'
import { CHAINS_BY_ID } from '@constants/chains'

const allSwap = [WETH, USDC, USDT]

Expand Down Expand Up @@ -135,7 +135,7 @@ export const tokenAddressToToken = (
if (chainId) {
if (tokenAddress === WETH.addresses[chainId]) {
return WETH
} else if (tokenAddress === '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE') {
} else if (tokenAddress === ETHEREUM_ADDRESS) {
return ETH
} else {
const token = BRIDGABLE_TOKENS[chainId]?.find((token: Token) => {
Expand Down

0 comments on commit bdeabe5

Please sign in to comment.