diff --git a/src/custom/components/Header/index.tsx b/src/custom/components/Header/index.tsx
index 7c3fdeda0..e60b96e85 100644
--- a/src/custom/components/Header/index.tsx
+++ b/src/custom/components/Header/index.tsx
@@ -45,6 +45,7 @@ import Modal from 'components/Modal'
// import ClaimModal from 'components/claim/ClaimModal'
import UniBalanceContent from 'components/Header/UniBalanceContent'
import CowClaimButton from 'components/CowClaimButton'
+import { IS_CLAIMING_ENABLED } from 'pages/Claim/const'
export const NETWORK_LABELS: { [chainId in ChainId]?: string } = {
[ChainId.RINKEBY]: 'Rinkeby',
@@ -258,9 +259,11 @@ export default function Header() {
-
-
-
+ {IS_CLAIMING_ENABLED && (
+
+
+
+ )}
{account && userEthBalance && (
diff --git a/src/custom/pages/App/index.tsx b/src/custom/pages/App/index.tsx
index 367c7d81c..f20f9aacd 100644
--- a/src/custom/pages/App/index.tsx
+++ b/src/custom/pages/App/index.tsx
@@ -20,6 +20,7 @@ import { version } from '@src/../package.json'
import { environmentName } from 'utils/environments'
import { useFilterEmptyQueryParams } from 'hooks/useFilterEmptyQueryParams'
import RedirectAnySwapAffectedUsers from 'pages/error/AnySwapAffectedUsers/RedirectAnySwapAffectedUsers'
+import { IS_CLAIMING_ENABLED } from 'pages/Claim/const'
const SENTRY_DSN = process.env.REACT_APP_SENTRY_DSN
const SENTRY_TRACES_SAMPLE_RATE = process.env.REACT_APP_SENTRY_TRACES_SAMPLE_RATE
@@ -75,7 +76,7 @@ export default function App() {
-
+ {IS_CLAIMING_ENABLED && }
diff --git a/src/custom/pages/Claim/const.ts b/src/custom/pages/Claim/const.ts
new file mode 100644
index 000000000..7b64e701a
--- /dev/null
+++ b/src/custom/pages/Claim/const.ts
@@ -0,0 +1,3 @@
+import { isProd, isEns, isBarn } from 'utils/environments'
+
+export const IS_CLAIMING_ENABLED = !isProd && !isEns && !isBarn
diff --git a/src/custom/pages/Claim/index.tsx b/src/custom/pages/Claim/index.tsx
index 146432ca7..ee688499d 100644
--- a/src/custom/pages/Claim/index.tsx
+++ b/src/custom/pages/Claim/index.tsx
@@ -26,12 +26,16 @@ import useTransactionConfirmationModal from 'hooks/useTransactionConfirmationMod
import { useErrorModal } from 'hooks/useErrorMessageAndModal'
import FooterNavButtons from './FooterNavButtons'
+import { isProd, isEns, isBarn } from 'utils/environments'
+
/* TODO: Replace URLs with the actual final URL destinations */
export const COW_LINKS = {
vCowPost: 'https://cow.fi/',
stepGuide: 'https://cow.fi/',
}
+export const IS_CLAIMING_ENABLED = !isProd && !isEns && !isBarn
+
export default function Claim() {
const { account } = useActiveWeb3React()
diff --git a/src/custom/pages/Profile/index.tsx b/src/custom/pages/Profile/index.tsx
index 3f217c88b..bc9947f80 100644
--- a/src/custom/pages/Profile/index.tsx
+++ b/src/custom/pages/Profile/index.tsx
@@ -34,6 +34,8 @@ import { useTokenBalance } from 'state/wallet/hooks'
import { V_COW } from 'constants/tokens'
import VCOWDropdown from './VCOWDropdown'
+import { IS_CLAIMING_ENABLED } from 'pages/Claim/const'
+
export default function Profile() {
const referralLink = useReferralLink()
const { account, chainId } = useActiveWeb3React()
@@ -66,7 +68,7 @@ export default function Profile() {
Profile
- {vCowBalance && }
+ {IS_CLAIMING_ENABLED && vCowBalance && }
{chainId && chainId === ChainId.MAINNET && }