Skip to content

Commit

Permalink
hn: cctp: updated finality
Browse files Browse the repository at this point in the history
  • Loading branch information
shanefontaine committed Jun 25, 2024
1 parent 390fef3 commit 99ef2ec
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/hop-node/src/cctp/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ export async function poll(
}

// TODO: V2: Get this from config
// This represents the custom finality time for each chain
// This represents the custom finality time for each chain. There is a buffer.
export function getFinalityTimeFromChainIdMs(chainId: string): number {
switch (chainId) {
case '1':
return 6 * TimeIntervals.ONE_MINUTE_MS
return 12 * TimeIntervals.ONE_MINUTE_MS
case '10':
return 6 * TimeIntervals.ONE_MINUTE_MS
return 12 * TimeIntervals.ONE_MINUTE_MS
case '42161':
return 6 * TimeIntervals.ONE_MINUTE_MS
return 12 * TimeIntervals.ONE_MINUTE_MS
case '8453':
return 6 * TimeIntervals.ONE_MINUTE_MS
return 12 * TimeIntervals.ONE_MINUTE_MS
case '137':
return 6 * TimeIntervals.ONE_MINUTE_MS
return 12 * TimeIntervals.ONE_MINUTE_MS
default:
throw new Error(`Unknown chainId: ${chainId}`)
}
Expand Down

0 comments on commit 99ef2ec

Please sign in to comment.