Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
spsjvc committed Dec 17, 2024
1 parent 189139e commit cfc30d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/arb-token-bridge-ui/src/util/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ export async function isAlchemyChain(provider: Provider) {
return false
}

return chain.rpcUrl.includes('alchemy.com')
return chain.rpcUrl.toLowerCase().includes('alchemy.com')
}

export function mapCustomChainToNetworkData(chain: ChainWithRpcUrl) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export async function fetchWithdrawals({

const queries: Query[] = []

// alchemy has a global rate limit across all their chains, so we have to fetch sequentially and wait in-between requests
// alchemy as a raas has a global rate limit across their chains, so we have to fetch sequentially and wait in-between requests to work around this
const isAlchemy = await isAlchemyChain(l2Provider)
const delayMs = isAlchemy ? 2_000 : 0

Expand Down

0 comments on commit cfc30d6

Please sign in to comment.