From d4ad7d27684ff2957af900a6d776f9ff7a5268fe Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 28 Mar 2024 10:20:17 +0800 Subject: [PATCH] refactor: maintenance darwinia<>crab (#12) --- 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]);