-
+
diff --git a/src/pages/HLSFarmPage.tsx b/src/pages/HLSFarmPage.tsx
new file mode 100644
index 00000000..d386ee30
--- /dev/null
+++ b/src/pages/HLSFarmPage.tsx
@@ -0,0 +1,12 @@
+import Tab from 'components/Earn/Tab'
+import MigrationBanner from 'components/MigrationBanner'
+import { HLS_TABS } from 'constants/pages'
+
+export default function HLSFarmPage() {
+ return (
+
+
+
+
+ )
+}
diff --git a/src/pages/HLSStakingPage.tsx b/src/pages/HLSStakingPage.tsx
new file mode 100644
index 00000000..1fc8e2d2
--- /dev/null
+++ b/src/pages/HLSStakingPage.tsx
@@ -0,0 +1,12 @@
+import Tab from 'components/Earn/Tab'
+import MigrationBanner from 'components/MigrationBanner'
+import { HLS_TABS } from 'constants/pages'
+
+export default function HLSStakingPage() {
+ return (
+
+
+
+
+ )
+}
diff --git a/src/pages/LendPage.tsx b/src/pages/LendPage.tsx
index c27b76e3..0cce99ee 100644
--- a/src/pages/LendPage.tsx
+++ b/src/pages/LendPage.tsx
@@ -1,7 +1,8 @@
-import LendIntro from 'components/Earn/Lend/LendIntro'
import LendingMarketsTable from 'components/Earn/Lend/LendingMarketsTable'
+import LendIntro from 'components/Earn/Lend/LendIntro'
import Tab from 'components/Earn/Tab'
import MigrationBanner from 'components/MigrationBanner'
+import { EARN_TABS } from 'constants/pages'
import useLendingMarketAssetsTableData from 'hooks/useLendingMarketAssetsTableData'
export default function LendPage() {
@@ -9,7 +10,7 @@ export default function LendPage() {
return (
-
+
diff --git a/src/pages/PortfolioAccountPage.tsx b/src/pages/PortfolioAccountPage.tsx
index fa63750a..84a9b835 100644
--- a/src/pages/PortfolioAccountPage.tsx
+++ b/src/pages/PortfolioAccountPage.tsx
@@ -4,6 +4,7 @@ import MigrationBanner from 'components/MigrationBanner'
import Balances from 'components/Portfolio/Account/Balances'
import BreadCrumbs from 'components/Portfolio/Account/BreadCrumbs'
import Summary from 'components/Portfolio/Account/Summary'
+import ShareBar from 'components/ShareBar'
import useAccountId from 'hooks/useAccountId'
import { getRoute } from 'utils/route'
@@ -23,6 +24,7 @@ export default function PortfolioAccountPage() {
+
)
}
diff --git a/src/pages/PortfolioPage.tsx b/src/pages/PortfolioPage.tsx
index 9c676797..e39a71db 100644
--- a/src/pages/PortfolioPage.tsx
+++ b/src/pages/PortfolioPage.tsx
@@ -2,6 +2,7 @@ import MigrationBanner from 'components/MigrationBanner'
import AccountOverview from 'components/Portfolio/Overview'
import PortfolioSummary from 'components/Portfolio/Overview/Summary'
import PortfolioIntro from 'components/Portfolio/PortfolioIntro'
+import ShareBar from 'components/ShareBar'
export default function PortfolioPage() {
return (
@@ -10,6 +11,7 @@ export default function PortfolioPage() {
+
)
}
diff --git a/src/types/enums/docURL.ts b/src/types/enums/docURL.ts
index 7babde0c..aaeeec0d 100644
--- a/src/types/enums/docURL.ts
+++ b/src/types/enums/docURL.ts
@@ -3,6 +3,7 @@ export enum DocURL {
BORROW_LENDING_URL = 'https://docs.marsprotocol.io/docs/learn/mars-v2/borrow',
COOKIE_POLICY_URL = 'https://docs.marsprotocol.io/docs/overview/legal/cookie-policy',
DOCS_URL = 'https://docs.marsprotocol.io/',
+ FARM_INTRO_URL = 'https://docs.marsprotocol.io/docs/learn/tutorials/farming/farming-intro',
MANAGE_ACCOUNT_URL = 'https://docs.marsprotocol.io/docs/learn/tutorials/credit-accounts/credit-accounts-intro',
ROVER_INTRO_URL = 'https://docs.marsprotocol.io/docs/learn/mars-v2/credit-accounts',
PRIVACY_POLICY_URL = 'https://docs.marsprotocol.io/docs/overview/legal/privacy-policy',
@@ -10,4 +11,5 @@ export enum DocURL {
TRADING_INTRO_URL = 'https://docs.marsprotocol.io/docs/learn/tutorials/trading/trading-intro',
V1_URL = 'https://v1.marsprotocol.io',
WALLET_INTRO_URL = 'https://docs.marsprotocol.io/docs/learn/tutorials/basics/connecting-your-wallet',
+ X_SHARE_URL = 'https://x.com/intent/tweet',
}
diff --git a/src/types/interfaces/components/Tab.d.ts b/src/types/interfaces/components/Tab.d.ts
new file mode 100644
index 00000000..aff1c9c5
--- /dev/null
+++ b/src/types/interfaces/components/Tab.d.ts
@@ -0,0 +1,4 @@
+interface Tab {
+ page: Page
+ name: string
+}
diff --git a/src/types/interfaces/route.d.ts b/src/types/interfaces/route.d.ts
index 48101e31..dcd3b9e7 100644
--- a/src/types/interfaces/route.d.ts
+++ b/src/types/interfaces/route.d.ts
@@ -1 +1,9 @@
-type Page = 'trade' | 'borrow' | 'farm' | 'lend' | 'portfolio' | 'portfolio/{accountId}'
+type Page =
+ | 'trade'
+ | 'borrow'
+ | 'farm'
+ | 'lend'
+ | 'portfolio'
+ | 'portfolio/{accountId}'
+ | 'hls-farm'
+ | 'hls-staking'
diff --git a/src/utils/constants.ts b/src/utils/constants.ts
index f4e8a264..55a7b2b4 100644
--- a/src/utils/constants.ts
+++ b/src/utils/constants.ts
@@ -22,3 +22,5 @@ export const DEFAULT_PORTFOLIO_STATS = [
{ title: null, sub: 'APR' },
{ title: null, sub: 'Account Leverage' },
]
+
+export const ENABLE_HLS = false