Skip to content

Commit

Permalink
chore: misc minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito committed May 15, 2024
1 parent c9eef95 commit 5e5d6c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/explorer/src/api/operator/accountOrderUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function getAccountOrders(params: GetAccountOrdersParams): Promise<

const ordersPromise = state.prodHasNext
? orderBookSDK.getOrders({ owner, offset, limit: limitPlusOne }, { chainId: networkId }).catch((error) => {
console.error('[getAccountOrders] Error getting PROD orders for account ', owner, error)
console.error('[getAccountOrders] Error getting PROD orders for account', owner, networkId, error)
return []
})
: []
Expand Down
1 change: 1 addition & 0 deletions apps/explorer/src/api/web3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const PROVIDER_ENDPOINTS: Record<SupportedChainId, string> = {
[SupportedChainId.MAINNET]: 'https://eth-mainnet.nodereal.io/v1/' + NODE_PROVIDER_ID,
[SupportedChainId.GNOSIS_CHAIN]: 'https://rpc.gnosis.gateway.fm/',
[SupportedChainId.SEPOLIA]: 'https://eth-sepolia.nodereal.io/v1/' + NODE_PROVIDER_ID,
// WARNING: THIS NEEDS TO BE A WS ENDPOINT
[SupportedChainId.ARBITRUM_ONE]: 'wss://arbitrum-one-rpc.publicnode.com', // TODO: should we use nodereal here too?
}

Expand Down
4 changes: 1 addition & 3 deletions apps/explorer/src/hooks/useTokenList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ export function useTokenList(chainId: SupportedChainId | undefined): { data: Tok
: 'https://raw.githubusercontent.com/cowprotocol/token-lists/main/src/public/CowSwapSepolia.json'
)
const { data: coingeckoList, isLoading: isCoingeckoListLoading } = useTokenListByUrl(
chainId === SupportedChainId.MAINNET || chainId === SupportedChainId.ARBITRUM_ONE
? 'https://tokens.coingecko.com/uniswap/all.json'
: ''
chainId === SupportedChainId.MAINNET ? 'https://tokens.coingecko.com/uniswap/all.json' : ''
)
const { data: honeyswapList, isLoading: isHoneyswapListLoading } = useTokenListByUrl(
chainId === SupportedChainId.GNOSIS_CHAIN ? 'https://tokens.honeyswap.org' : ''
Expand Down

0 comments on commit 5e5d6c0

Please sign in to comment.