Skip to content

Commit

Permalink
hide mev protection for base
Browse files Browse the repository at this point in the history
  • Loading branch information
tienkane committed Jan 15, 2025
1 parent 5ca7103 commit e408e15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/SwapForm/AddMEVProtectionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/SwapForm/SlippageSettingGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? (
<PriceAlertButton onClick={addMevProtectionHandler}>
<Shield size={14} color={theme.subText} />
<Text color={theme.subText} style={{ whiteSpace: 'nowrap' }}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SwapForm/SwapModal/SwapDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit e408e15

Please sign in to comment.