diff --git a/src/components/SwapForm/SlippageSettingGroup.tsx b/src/components/SwapForm/SlippageSettingGroup.tsx index a1e0f387a6..c548eb24d5 100644 --- a/src/components/SwapForm/SlippageSettingGroup.tsx +++ b/src/components/SwapForm/SlippageSettingGroup.tsx @@ -68,8 +68,7 @@ export default function SlippageSettingGroup({ ) : null - // fake to hide for now - if (chainId === ChainId.ZKSYNC && !isPartnerSwap && 1 + 1 > 3) { + if (chainId === ChainId.ZKSYNC && !isPartnerSwap) { rightButton = ( diff --git a/src/components/swapv2/GasTokenSetting.tsx b/src/components/swapv2/GasTokenSetting.tsx index 2462a81147..2e7cd2a6e2 100644 --- a/src/components/swapv2/GasTokenSetting.tsx +++ b/src/components/swapv2/GasTokenSetting.tsx @@ -6,10 +6,12 @@ import { Box, Flex, Text } from 'rebass' import CurrencyLogo from 'components/CurrencyLogo' import Divider from 'components/Divider' +import { MouseoverTooltip, TextDashed } from 'components/Tooltip' import { GAS_TOKENS, NativeCurrencies } from 'constants/tokens' import useTheme from 'hooks/useTheme' import { usePaymentToken } from 'state/user/hooks' import { useCurrencyBalances, useNativeBalance } from 'state/wallet/hooks' +import { ExternalLink } from 'theme' export default function GasTokenSetting({ onBack }: { onBack: () => void }) { const theme = useTheme() @@ -80,9 +82,22 @@ export default function GasTokenSetting({ onBack }: { onBack: () => void }) { /> - - Paymaster - + + + + The PayMaster module & contracts are developed and operated by HoldStations,{' '} + + details + + + + } + > + Paymaster + + Pay network fees in the token of your choice. diff --git a/src/state/user/hooks.tsx b/src/state/user/hooks.tsx index c724bcf2ec..97490f16a0 100644 --- a/src/state/user/hooks.tsx +++ b/src/state/user/hooks.tsx @@ -450,9 +450,7 @@ export const usePaymentToken: () => [Token | null, (paymentToken: Token | null) const p = useMemo(() => { if (chainId !== ChainId.ZKSYNC) return null if (!GAS_TOKENS.map(item => item.address.toLowerCase()).includes(paymentToken?.address.toLowerCase())) return null - - // TODO: hardcode to temp disable for now - return null + return paymentToken }, [paymentToken, chainId]) const updatePaymentToken = useCallback((pt: Token | null) => dispatch(setPaymentToken(pt)), [dispatch])