Skip to content

Commit

Permalink
Merge pull request #1640 from QuickSwap/feature/remove-v1perps-produc…
Browse files Browse the repository at this point in the history
…tion

Remove the V1 perps from the production site on ZKEVm
  • Loading branch information
sameepsi authored Dec 17, 2024
2 parents 361c58d + 58e9d66 commit 2f5100e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Footer: React.FC = () => {
title: t('Products'),
items: [
{ title: t('swap'), link: '/swap' },
{ title: t('Perps - zkEVM V1'), link: process.env.REACT_APP_PERPS_URL },
{ title: t('Hydra'), link: process.env.REACT_APP_HYDRA_URL },
{ title: 'Perps - PoS', link: '/falkor', isNew: true },
{ title: t('pool'), link: '/pools' },
{ title: t('farm'), link: '/farm' },
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const Header: React.FC<{ onUpdateNewsletter: (val: boolean) => void }> = ({
menuItems.push(hydraItem);
}
}
if (showPerps) {
if (showPerps && process.env.NODE_ENV !== 'production') {
if (showHydra || showPerpsV2) {
perpsTab.items?.push(perpsItem);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/MobileHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const MobileHeader: React.FC<MobileHeaderProps> = ({
},
});
}
if (showPerps) {
if (showPerps && process.env.NODE_ENV !== 'production') {
perpMenuItems.push({
id: 'perps-v1-page-link',
link: process.env.REACT_APP_PERPS_URL || '#',
Expand Down
2 changes: 1 addition & 1 deletion src/constants/abis/token-locker-abi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1322,4 +1322,4 @@
"stateMutability": "nonpayable",
"type": "function"
}
]
]
2 changes: 1 addition & 1 deletion src/pages/PerpsPage/FooterOrdersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const FooterOrdersTable: React.FC<{

const [o, { cancelOrder, cancelAlgoOrder, isLoading }] = useOrderStream({
symbol: token,
status: orderStatus
status: orderStatus,
});

const orders = o as Order[] | null;
Expand Down

0 comments on commit 2f5100e

Please sign in to comment.