Skip to content

Commit 3067d41

Browse files
committed
Update ZilBridge
1 parent 0c6af8c commit 3067d41

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/app/components/ConfirmTransfer/ConfirmTransfer.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { ConnectedWallet } from "core/wallet"
2121
import { logger } from "core/utilities"
2222
import { BridgeParamConstants } from "app/views/main/Bridge/components/constants"
2323
import TransactionDetail from "app/views/bridge/TransactionDetail"
24-
import { BIG_ONE, BRIDGE_DISABLED, SimpleMap, truncateAddress } from "app/utils"
24+
import { BIG_ONE, BRIDGE_DISABLED, DISABLE_ZILBRIDGE, SimpleMap, truncateAddress } from "app/utils"
2525
import { hexToRGBA, netZilToCarbon, trimValue, truncate, useAsyncTask, useNetwork, useToaster, useTokenFinder } from "app/utils"
2626
import { AppTheme } from "app/theme/types"
2727
import { RootState } from "app/store/types"
@@ -509,6 +509,9 @@ const ConfirmTransfer = (props: any) => {
509509
}
510510

511511
runConfirmTransfer(async () => {
512+
if (DISABLE_ZILBRIDGE)
513+
throw new Error(DISABLE_ZILBRIDGE);
514+
512515
let sourceTxHash
513516
if (fromBlockchain === Blockchain.Zilliqa) {
514517
// init lock on zil side

src/app/utils/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ export const isProduction = () => {
8787
return PRODUCTION_HOSTS.includes(window.location.hostname)
8888
}
8989

90+
export const DISABLE_ZILBRIDGE = "Bridge is disabled due to issues with PolyNetwork. Please check Discord for updates. Funds are SAFU.";
91+
9092
export const DEFAULT_TX_SLIPPAGE = 0.01;
9193
export const DEFAULT_TX_EXPIRY = 3;
9294

src/app/views/main/Bridge/Bridge.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ const BridgeView: React.FC<React.HTMLAttributes<HTMLDivElement>> = (props: any)
8181
}, [bridgeFormState.fromBlockchain])
8282

8383
const { token: bridgeToken, fromBlockchain, toBlockchain } = bridgeFormState
84-
console.log("xx", bridgeState.tokens, bridgeToken?.denom, bridgeToken?.chains, bridgeFormState.toBlockchain)
8584

8685
const destToken = useMemo(() => {
8786
if (bridgeToken) {

0 commit comments

Comments
 (0)