Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse-Sawa committed Jul 6, 2022
1 parent 3f6b775 commit 32a3e2c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/components/CurrencyLogo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export default function CurrencyLogo({
}
return undefined
}, [checkSummed, polygon])

const uriLocationsPOlygon = useHttpLocations(polygonURI)

const celoURI = useMemo(() => {
Expand All @@ -79,7 +78,6 @@ export default function CurrencyLogo({
}
return undefined
}, [checkSummed, celo])

const uriLocationsCelo = useHttpLocations(celoURI)

//temp until token logo issue merged
Expand Down
6 changes: 4 additions & 2 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import { fortmatic, injected, portis, walletconnect, walletlink } from '../conne

export const MAX_UINT128 = BigNumber.from(2).pow(128).sub(1)

export const MATIC_ADDRESS = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'
export const CELO_ADDRESS = '0x471EcE3750Da237f93B8E339c536989b8978a438'

const WETH_ADDRESS = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
const ARBITRUM_WETH_ADDRESS = '0x82af49447d8a07e3bd95bd0d56f35241523fbab1'
const CELO_NATIVE_ASSET = '0x471EcE3750Da237f93B8E339c536989b8978a438'

export const WETH_ADDRESSES = [WETH_ADDRESS, ARBITRUM_WETH_ADDRESS, CELO_NATIVE_ASSET]
export const WETH_ADDRESSES = [WETH_ADDRESS, ARBITRUM_WETH_ADDRESS]

// temporary! fixing USD accounting on subgraph - open issue if urgent
export const TOKEN_HIDE = [
Expand Down
2 changes: 1 addition & 1 deletion src/constants/lists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const OPTIMISM_LIST = 'https://static.optimism.io/optimism.tokenlist.json
export const ARBITRUM_LIST = 'https://bridge.arbitrum.io/token-list-42161.json'
export const POLYGON_LIST =
'https://unpkg.com/[email protected]/build/quickswap-default.tokenlist.json'
export const CELO_LIST = 'https://raw.githubusercontent.com/celo-org/celo-token-list/main/celo.tokenlist.json'
export const CELO_LIST = 'https://celo-org.github.io/celo-token-list/celo.tokenlist.json'

// lower index == higher priority for token import
export const DEFAULT_LIST_OF_LISTS: string[] = [
Expand Down
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function getEtherscanLink(
networkVersion === PolygonNetworkInfo
? 'https://polygonscan.com/'
: networkVersion === CeloNetworkInfo
? 'https://explorer.celo.org/'
? 'https://explorer.celo.org'
: networkVersion === ArbitrumNetworkInfo
? 'https://arbiscan.io/'
: networkVersion === OptimismNetworkInfo
Expand Down
5 changes: 1 addition & 4 deletions src/utils/tokens.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { Token } from '@uniswap/sdk-core'
import { CeloNetworkInfo, NetworkInfo, PolygonNetworkInfo } from 'constants/networks'
import { WETH_ADDRESSES } from '../constants'

const CELO_ADDRESS = '0x471EcE3750Da237f93B8E339c536989b8978a438'
const MATIC_ADDRESS = '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270'
import { CELO_ADDRESS, MATIC_ADDRESS, WETH_ADDRESSES } from '../constants'

export interface SerializedToken {
chainId: number
Expand Down

0 comments on commit 32a3e2c

Please sign in to comment.