From e408e1525bb3044725c8b1ffc3d6a296ed223754 Mon Sep 17 00:00:00 2001 From: Tien Nguyen Date: Wed, 15 Jan 2025 15:35:14 +0700 Subject: [PATCH] hide mev protection for base --- src/components/SwapForm/AddMEVProtectionModal.tsx | 2 +- src/components/SwapForm/SlippageSettingGroup.tsx | 2 +- src/components/SwapForm/SwapModal/SwapDetails/index.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/SwapForm/AddMEVProtectionModal.tsx b/src/components/SwapForm/AddMEVProtectionModal.tsx index aeff582ca0..d20cc4860d 100644 --- a/src/components/SwapForm/AddMEVProtectionModal.tsx +++ b/src/components/SwapForm/AddMEVProtectionModal.tsx @@ -39,7 +39,7 @@ const Wrapper = styled.div` const KYBER_SWAP_RPC: { [key: number]: string } = { [ChainId.MAINNET]: 'https://ethereum-mev-protection.kyberengineering.io/', - [ChainId.BASE]: 'https://base-mev-protection.kyberengineering.io/', + // [ChainId.BASE]: 'https://base-mev-protection.kyberengineering.io/', } export default function AddMEVProtectionModal({ isOpen, onClose }: { isOpen: boolean; onClose: () => void }) { diff --git a/src/components/SwapForm/SlippageSettingGroup.tsx b/src/components/SwapForm/SlippageSettingGroup.tsx index 2d8fbc7012..2ac2de4536 100644 --- a/src/components/SwapForm/SlippageSettingGroup.tsx +++ b/src/components/SwapForm/SlippageSettingGroup.tsx @@ -65,7 +65,7 @@ export default function SlippageSettingGroup({ const { isSlippageControlPinned } = useSlippageSettingByPage() const isPartnerSwap = window.location.pathname.startsWith(APP_PATHS.PARTNER_SWAP) let rightButton = - [ChainId.MAINNET, ChainId.BASE].includes(chainId) && active && !isPartnerSwap && !isMobile && !isTablet ? ( + [ChainId.MAINNET].includes(chainId) && active && !isPartnerSwap && !isMobile && !isTablet ? ( diff --git a/src/components/SwapForm/SwapModal/SwapDetails/index.tsx b/src/components/SwapForm/SwapModal/SwapDetails/index.tsx index 56596123ee..cb37c1bfcd 100644 --- a/src/components/SwapForm/SwapModal/SwapDetails/index.tsx +++ b/src/components/SwapForm/SwapModal/SwapDetails/index.tsx @@ -142,7 +142,7 @@ export default function SwapDetails({ const upToXXSmall = useMedia(`(max-width: ${MEDIA_WIDTHS.upToXXSmall}px)`) const isPartnerSwap = window.location.pathname.startsWith(APP_PATHS.PARTNER_SWAP) const addMevButton = - (chainId === ChainId.MAINNET || chainId === ChainId.BASE) && + chainId === ChainId.MAINNET && active && !isPartnerSwap && slippageStatus === SLIPPAGE_STATUS.HIGH &&