diff --git a/packages/app/src/constants/links.ts b/packages/app/src/constants/links.ts index 091e220a5..c21e9de8d 100644 --- a/packages/app/src/constants/links.ts +++ b/packages/app/src/constants/links.ts @@ -1,6 +1,7 @@ import { CurrencyKey } from './currency' export const PROD_HOSTNAME = 'kwenta.eth.limo' +export const PROD_REFFERAL_URL = 'kwenta.eth.limo/market' export const EXTERNAL_LINKS = { Trading: { diff --git a/packages/app/src/sections/referrals/ReferralCodes.tsx b/packages/app/src/sections/referrals/ReferralCodes.tsx index 5d88a530e..85905c1bc 100644 --- a/packages/app/src/sections/referrals/ReferralCodes.tsx +++ b/packages/app/src/sections/referrals/ReferralCodes.tsx @@ -10,7 +10,7 @@ import { DesktopOnlyView, MobileOrTabletView } from 'components/Media' import Table from 'components/Table' import { TableHeader } from 'components/Table' import { Body } from 'components/Text' -import { PROD_HOSTNAME } from 'constants/links' +import { PROD_REFFERAL_URL } from 'constants/links' import useIsL2 from 'hooks/useIsL2' import { setOpenModal } from 'state/app/reducer' import { selectShowModal } from 'state/app/selectors' @@ -62,7 +62,7 @@ const ReferralCodes: FC = memo(({ data }) => { const y = event.clientY const { protocol, hostname, port } = window.location const fullUrl = `${protocol}//${ - process.env.NEXT_PUBLIC_REF_URL_OVERRIDE === 'true' ? PROD_HOSTNAME : hostname + process.env.NEXT_PUBLIC_REF_URL_OVERRIDE === 'true' ? PROD_REFFERAL_URL : hostname }${port ? `:${port}` : ``}/?ref=${text}` navigator.clipboard.writeText(fullUrl).then(() => {