From 66f78381500fc79b3e287cc67cb45082b2698f9a Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Thu, 28 Mar 2024 10:08:23 +0800 Subject: [PATCH] refactor: maintenance darwinia<>crab --- src/components/transfer.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/transfer.tsx b/src/components/transfer.tsx index 6c156924..563d5d96 100644 --- a/src/components/transfer.tsx +++ b/src/components/transfer.tsx @@ -87,6 +87,18 @@ export default function Transfer() {  {`to route to Darwinia or Ethereum instead.`} ); + } else if ( + (sourceChain?.network === "darwinia-dvm" && targetChain?.network === "crab-dvm") || + (sourceChain?.network === "crab-dvm" && targetChain?.network === "darwinia-dvm") + ) { + return ( +
+ + Cross-chain transfers between Darwinia and Crab are under maintenance, and will be reopened after the + upgrade is completed. + +
+ ); } return null; }, [sourceChain?.network, targetChain?.network]);