From 884b6ed979b6d69f35fa92ec216b1597c7d0c49d Mon Sep 17 00:00:00 2001 From: Nam Nguyen Date: Mon, 14 Aug 2023 09:44:28 +0700 Subject: [PATCH] update tooltip --- .../SwapForm/AddMEVProtectionModal.tsx | 13 +++++---- .../SwapForm/SlippageSettingGroup.tsx | 27 ++++++------------- 2 files changed, 16 insertions(+), 24 deletions(-) diff --git a/src/components/SwapForm/AddMEVProtectionModal.tsx b/src/components/SwapForm/AddMEVProtectionModal.tsx index dc6ff46402..b3194df2cc 100644 --- a/src/components/SwapForm/AddMEVProtectionModal.tsx +++ b/src/components/SwapForm/AddMEVProtectionModal.tsx @@ -140,17 +140,20 @@ export default function AddMEVProtectionModal({ isOpen, onClose }: { isOpen: boo - We suggest using the{' '} + + MEV + {' '} + Protection safeguards you from front-running attacks on Ethereum. We suggest you employing the{' '} RPC endpoint {' '} - of trusted third-parties like{' '} + of reliable third-parties such as{' '} Flashbots or{' '} - MEVBlocker to protect you from MEV Bots.{' '} + MEVBlocker.

- Please note that adding a RPC endpoint automatically is only supported via the MetaMask wallet. If you - wish to add the RPC endpoint to your wallet manually, refer to this{' '} + Note that adding the RPC endpoint automatically is only available via the MetaMask wallet. If you would + like to add the RPC endpoint to your wallet manually, please refer to this{' '} guide diff --git a/src/components/SwapForm/SlippageSettingGroup.tsx b/src/components/SwapForm/SlippageSettingGroup.tsx index 978ee0f1dd..23f2da2d25 100644 --- a/src/components/SwapForm/SlippageSettingGroup.tsx +++ b/src/components/SwapForm/SlippageSettingGroup.tsx @@ -52,25 +52,14 @@ export default function SlippageSettingGroup({ const rightButton = chainId === ChainId.MAINNET && walletEVM.isConnected ? ( - - MEV Protection will protect you from front-running and sandwich attacks on Ethereum. Learn more{' '} - - here ↗ - -
- } - > - - - {upToXXSmall ? null : ( - - Add MEV Protection - - )} - - + + + {upToXXSmall ? null : ( + + Add MEV Protection + + )} + ) : null return (