From a32c7343e54ba7992804702c21c30cc1da12f70f Mon Sep 17 00:00:00 2001 From: Evan Gray Date: Tue, 11 Jan 2022 20:07:02 +0000 Subject: [PATCH] bridge_ui: update polygon confs --- bridge_ui/src/components/TransactionProgress.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/bridge_ui/src/components/TransactionProgress.tsx b/bridge_ui/src/components/TransactionProgress.tsx index 7c1225e09..eb2453efa 100644 --- a/bridge_ui/src/components/TransactionProgress.tsx +++ b/bridge_ui/src/components/TransactionProgress.tsx @@ -1,4 +1,9 @@ -import { ChainId, CHAIN_ID_SOLANA, isEVMChain } from "@certusone/wormhole-sdk"; +import { + ChainId, + CHAIN_ID_POLYGON, + CHAIN_ID_SOLANA, + isEVMChain, +} from "@certusone/wormhole-sdk"; import { LinearProgress, makeStyles, Typography } from "@material-ui/core"; import { Connection } from "@solana/web3.js"; import { useEffect, useState } from "react"; @@ -66,7 +71,13 @@ export default function TransactionProgress({ const blockDiff = tx && tx.block && currentBlock ? currentBlock - tx.block : undefined; const expectedBlocks = - chainId === CHAIN_ID_SOLANA ? 32 : isEVMChain(chainId) ? 15 : 1; + chainId === CHAIN_ID_POLYGON + ? 256 // minimum confirmations enforced by guardians + : chainId === CHAIN_ID_SOLANA + ? 32 + : isEVMChain(chainId) + ? 15 + : 1; if ( !isSendComplete && (chainId === CHAIN_ID_SOLANA || isEVMChain(chainId)) &&