diff --git a/packages/hop-node/src/cctp/utils.ts b/packages/hop-node/src/cctp/utils.ts index e6ea8a0b0..f34c4b875 100644 --- a/packages/hop-node/src/cctp/utils.ts +++ b/packages/hop-node/src/cctp/utils.ts @@ -20,18 +20,19 @@ export async function poll( } // TODO: V2: Get this from config +// This represents the custom finality time for each chain export function getFinalityTimeFromChainIdMs(chainId: string): number { switch (chainId) { case '1': return 6 * TimeIntervals.ONE_MINUTE_MS case '10': - return 10_000 + return 6 * TimeIntervals.ONE_MINUTE_MS case '42161': - return 10_000 + return 6 * TimeIntervals.ONE_MINUTE_MS case '8453': - return 10_000 + return 6 * TimeIntervals.ONE_MINUTE_MS case '137': - return 1 * TimeIntervals.ONE_MINUTE_MS + return 6 * TimeIntervals.ONE_MINUTE_MS default: throw new Error(`Unknown chainId: ${chainId}`) }