Skip to content

Commit

Permalink
improve(NetworkUtils): add chainIsL1Function (#682)
Browse files Browse the repository at this point in the history
Signed-off-by: bennett <bennett@umaproject.org>
  • Loading branch information
bmzig authored Jul 15, 2024
1 parent cb51d2c commit 56eda28
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utils/NetworkUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ export function chainIsLinea(chainId: number): boolean {
return [CHAIN_IDs.LINEA].includes(chainId);
}

/**
* Determines whether a chain ID has a corresponding hub pool contract.
* @param chainId Chain ID to evaluate.
* @returns True if chain corresponding to chainId has a hub pool implementation.
*/
export function chainIsL1(chainId: number): boolean {
return [CHAIN_IDs.MAINNET, CHAIN_IDs.SEPOLIA].includes(chainId);
}

/**
* Determines whether a chain ID has the capacity for having its USDC bridged via CCTP.
* @param chainId Chain ID to evaluate.
Expand Down

0 comments on commit 56eda28

Please sign in to comment.