- {t(
- 'Vega is a decentralised peer-to-peer protocol that can be used to trade derivatives with cryptoassets. The Vega Protocol is an implementation layer (layer one) protocol made of free, public, open-source or source-available software. Use of the Vega Protocol involves various risks, including but not limited to, losses while digital assets are supplied to the Vega Protocol and losses due to the fluctuation of prices of assets.'
- )}
-
-
- {t(
- 'Before using the Vega Protocol, review the relevant documentation at docs.vega.xyz to make sure that you understand how it works. Conduct your own due diligence and consult your financial advisor before making any investment decisions.'
- )}
-
-
- {t(
- 'As described in the Vega Protocol core license, the Vega Protocol is provided “as is”, at your own risk, and without warranties of any kind. Although Gobalsky Labs Limited developed much of the initial code for the Vega Protocol, it does not provide or control the Vega Protocol, which is run by third parties deploying it on a bespoke blockchain. Upgrades and modifications to the Vega Protocol are managed in a community-driven way by holders of the VEGA governance token.'
- )}
-
-
- {t(
- 'No developer or entity involved in creating the Vega Protocol will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the Vega Protocol, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or legal costs, or loss of profits, cryptoassets, tokens or anything else of value.'
- )}
-
-
- {t(
- 'This website is hosted on a decentralised network, the Interplanetary File System (“IPFS”). The IPFS decentralised web is made up of all the computers (nodes) connected to it. Data is therefore stored on many different computers.'
- )}
-
-
- {t(
- "The information provided on this website does not constitute investment advice, financial advice, trading advice, or any other sort of advice and you should not treat any of the website's content as such. No party recommends that any cryptoasset should be bought, sold, or held by you via this website. No party ensures the accuracy of information listed on this website or holds any responsibility for any missing or wrong information. You understand that you are using any and all information available here at your own risk."
- )}
-
-
- {t(
- 'Additionally, just as you can access email protocols such as SMTP through multiple email clients, you can potentially access the Vega Protocol through many web or mobile interfaces. You are responsible for doing your own diligence on those interfaces to understand the associated risks and any fees.'
- )}
-
-
-
+ <>
+
+ {t('Disclaimer')}
+
+
+ {t(
+ 'Vega is a decentralised peer-to-peer protocol that can be used to trade derivatives with cryptoassets. The Vega Protocol is an implementation layer (layer one) protocol made of free, public, open-source or source-available software. Use of the Vega Protocol involves various risks, including but not limited to, losses while digital assets are supplied to the Vega Protocol and losses due to the fluctuation of prices of assets.'
+ )}
+
+
+ {t(
+ 'Before using the Vega Protocol, review the relevant documentation at docs.vega.xyz to make sure that you understand how it works. Conduct your own due diligence and consult your financial advisor before making any investment decisions.'
+ )}
+
+
+ {t(
+ 'As described in the Vega Protocol core license, the Vega Protocol is provided “as is”, at your own risk, and without warranties of any kind. Although Gobalsky Labs Limited developed much of the initial code for the Vega Protocol, it does not provide or control the Vega Protocol, which is run by third parties deploying it on a bespoke blockchain. Upgrades and modifications to the Vega Protocol are managed in a community-driven way by holders of the VEGA governance token.'
+ )}
+
+
+ {t(
+ 'No developer or entity involved in creating the Vega Protocol will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the Vega Protocol, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or legal costs, or loss of profits, cryptoassets, tokens or anything else of value.'
+ )}
+
+
+ {t(
+ 'This website is hosted on a decentralised network, the Interplanetary File System (“IPFS”). The IPFS decentralised web is made up of all the computers (nodes) connected to it. Data is therefore stored on many different computers.'
+ )}
+
+
+ {t(
+ "The information provided on this website does not constitute investment advice, financial advice, trading advice, or any other sort of advice and you should not treat any of the website's content as such. No party recommends that any cryptoasset should be bought, sold, or held by you via this website. No party ensures the accuracy of information listed on this website or holds any responsibility for any missing or wrong information. You understand that you are using any and all information available here at your own risk."
+ )}
+
+
+ {t(
+ 'Additionally, just as you can access email protocols such as SMTP through multiple email clients, you can potentially access the Vega Protocol through many web or mobile interfaces. You are responsible for doing your own diligence on those interfaces to understand the associated risks and any fees.'
+ )}
+
+ >
);
};
diff --git a/apps/trading/client-pages/disclaimer/index.ts b/apps/trading/client-pages/disclaimer/index.ts
index c47c92bfc..a5a11f6cd 100644
--- a/apps/trading/client-pages/disclaimer/index.ts
+++ b/apps/trading/client-pages/disclaimer/index.ts
@@ -1,3 +1 @@
-import { Disclaimer } from './disclaimer';
-
-export default Disclaimer;
+export { Disclaimer } from './disclaimer';
diff --git a/apps/trading/client-pages/home/home.tsx b/apps/trading/client-pages/home/home.tsx
index c4974bc99..76be931cb 100644
--- a/apps/trading/client-pages/home/home.tsx
+++ b/apps/trading/client-pages/home/home.tsx
@@ -1,9 +1,9 @@
import { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import { Loader, Splash } from '@vegaprotocol/ui-toolkit';
-import { Links, Routes } from '../../pages/client-router';
import { useGlobalStore } from '../../stores';
import { useTopTradedMarkets } from '../../lib/hooks/use-top-traded-markets';
+import { Links } from '../../lib/links';
// The home pages only purpose is to redirect to the users last market,
// the top traded if they are new, or fall back to the list of markets.
@@ -15,17 +15,17 @@ export const Home = () => {
useEffect(() => {
if (marketId) {
- navigate(Links[Routes.MARKET](marketId), {
+ navigate(Links.MARKET(marketId), {
replace: true,
});
} else if (data) {
const marketDataId = data[0]?.id;
if (marketDataId) {
- navigate(Links[Routes.MARKET](marketDataId), {
+ navigate(Links.MARKET(marketDataId), {
replace: true,
});
} else {
- navigate(Links[Routes.MARKETS]());
+ navigate(Links.MARKETS());
}
}
}, [marketId, data, navigate]);
diff --git a/apps/trading/client-pages/home/index.ts b/apps/trading/client-pages/home/index.ts
index 64a0ba43f..e331f58c5 100644
--- a/apps/trading/client-pages/home/index.ts
+++ b/apps/trading/client-pages/home/index.ts
@@ -1,3 +1 @@
-import { Home } from './home';
-
-export default Home;
+export { Home } from './home';
diff --git a/apps/trading/client-pages/liquidity/index.ts b/apps/trading/client-pages/liquidity/index.ts
index 2b2228473..15a9df50e 100644
--- a/apps/trading/client-pages/liquidity/index.ts
+++ b/apps/trading/client-pages/liquidity/index.ts
@@ -1,3 +1 @@
-import { Liquidity } from './liquidity';
-
-export default Liquidity;
+export { Liquidity } from './liquidity';
diff --git a/apps/trading/client-pages/market/index.ts b/apps/trading/client-pages/market/index.ts
index 22af22088..20f2a87f3 100644
--- a/apps/trading/client-pages/market/index.ts
+++ b/apps/trading/client-pages/market/index.ts
@@ -1,3 +1 @@
-import { MarketPage } from './market';
-
-export default MarketPage;
+export { MarketPage as default } from './market';
diff --git a/apps/trading/client-pages/market/market.tsx b/apps/trading/client-pages/market/market.tsx
index c9014878f..fd29cdec0 100644
--- a/apps/trading/client-pages/market/market.tsx
+++ b/apps/trading/client-pages/market/market.tsx
@@ -9,7 +9,7 @@ import { useGlobalStore, usePageTitleStore } from '../../stores';
import { TradeGrid } from './trade-grid';
import { TradePanels } from './trade-panels';
import { useNavigate, useParams } from 'react-router-dom';
-import { Links, Routes } from '../../pages/client-router';
+import { Links } from '../../lib/links';
import { ViewType, useSidebar } from '../../components/sidebar';
import { useGetCurrentRouteId } from '../../lib/hooks/use-get-current-route-id';
@@ -96,12 +96,12 @@ export const MarketPage = () => {
return (
-
+
{t('This market URL is not available any more.')}
-
+
{t(`Please choose another market from the`)}{' '}
- navigate(Links[Routes.MARKETS]())}>
+ navigate(Links.MARKETS())}>
market list
{t(
'The market has sufficient liquidity but there are not enough priced limit orders in the order book, which are required to deploy liquidity commitment pegged orders.'
)}
)}
+
+
+ {t('View liquidity provision table')}
+
+
+ {DocsLinks && (
+
+
+ {t('Learn about providing liquidity')}
+
+
+ )}
) : (
'-'
diff --git a/apps/trading/components/market-selector/product-selector.tsx b/apps/trading/components/market-selector/product-selector.tsx
index 15077c7f6..b80361d37 100644
--- a/apps/trading/components/market-selector/product-selector.tsx
+++ b/apps/trading/components/market-selector/product-selector.tsx
@@ -1,8 +1,8 @@
import classNames from 'classnames';
import { Link } from 'react-router-dom';
-import { Routes } from '../../pages/client-router';
import { t } from '@vegaprotocol/i18n';
import { VegaIcon, VegaIconNames } from '@vegaprotocol/ui-toolkit';
+import { Links } from '../../lib/links';
// Make sure these match the available __typename properties on product
export const Product = {
@@ -55,7 +55,7 @@ export const ProductSelector = ({
);
})}
diff --git a/apps/trading/components/navbar/navbar.tsx b/apps/trading/components/navbar/navbar.tsx
index 4cc0f1281..e2b8b05cc 100644
--- a/apps/trading/components/navbar/navbar.tsx
+++ b/apps/trading/components/navbar/navbar.tsx
@@ -15,7 +15,7 @@ import * as N from '@radix-ui/react-navigation-menu';
import * as D from '@radix-ui/react-dialog';
import { NavLink } from 'react-router-dom';
-import { Links, Routes } from '../../pages/client-router';
+import { Links } from '../../lib/links';
import classNames from 'classnames';
import { VegaWalletMenu } from '../vega-wallet';
import { useVegaWallet, useVegaWalletDialogStore } from '@vegaprotocol/wallet';
@@ -142,9 +142,7 @@ const NavbarMenu = ({ onClick }: { onClick: () => void }) => {
// If we have a stored marketId make Trade link go to that market
// otherwise always go to /markets/all
- const tradingPath = marketId
- ? Links[Routes.MARKET](marketId)
- : Links[Routes.MARKET]('');
+ const tradingPath = marketId ? Links.MARKET(marketId) : Links.MARKETS();
return (