From 195fc090b5b4aa5839ec1b91667f302f26984be5 Mon Sep 17 00:00:00 2001 From: Timothy Date: Sun, 3 Sep 2023 18:53:15 +0800 Subject: [PATCH] use correct pps for earn --- shared/src/hooks/useFetchEarnVaultData.ts | 3 +-- webapp/src/components/Header/Header.tsx | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/shared/src/hooks/useFetchEarnVaultData.ts b/shared/src/hooks/useFetchEarnVaultData.ts index 4f08cb3b0..fdacd0bd8 100644 --- a/shared/src/hooks/useFetchEarnVaultData.ts +++ b/shared/src/hooks/useFetchEarnVaultData.ts @@ -5,7 +5,6 @@ import { getVaultNetwork, EarnVaultList, VIPVaultList, - isEarnVault, } from "../constants/constants"; import { isProduction, isTreasury, isVIP } from "../utils/env"; import { getVaultContract } from "./useVaultContract"; @@ -203,7 +202,7 @@ const useFetchEarnVaultData = (): V2VaultData => { vault, totalBalance, cap, - pricePerShare: actualPricePerShare, + pricePerShare: usedPricePerShare, round: round, roundPricePerShare, lockedBalanceInAsset: accountVaultBalance, diff --git a/webapp/src/components/Header/Header.tsx b/webapp/src/components/Header/Header.tsx index 41bbc066d..d14afef3c 100644 --- a/webapp/src/components/Header/Header.tsx +++ b/webapp/src/components/Header/Header.tsx @@ -19,7 +19,6 @@ import ExternalLink from "shared/lib/assets/icons/externalLink"; import { useGlobalState } from "shared/lib/store/store"; import FilterDropdown from "shared/lib/components/Common/FilterDropdown"; import { useHistory } from "react-router-dom"; -import { useLendLink } from "shared/lib/hooks/useLendLink"; import { BuyButton } from "../Wallet/BuyButton"; export const HeaderContainer = styled.div` @@ -158,7 +157,6 @@ const Header = () => { const staking = useRouteMatch({ path: "/staking", exact: true }); const headerRef = useRef(null); const [, setComponentRefs] = useGlobalState("componentRefs"); - const lendLink = useLendLink(); const onToggleMenu = () => { setIsMenuOpen(!isMenuOpen); }; @@ -276,7 +274,6 @@ const Header = () => { /> )} - {renderLinkItem("LEND", lendLink, true, true, true, true)} @@ -330,7 +327,6 @@ const Header = () => { Boolean(useRouteMatch({ path: "/staking", exact: true })) )} {renderLinkItem("STAKE RBN", URLS.governance, false, true, true)} - {renderLinkItem("LEND", lendLink, true, true, true, true)} {renderLinkItem("DISCORD", URLS.discord, false, false, true)} {renderLinkItem("TWITTER", URLS.twitter, false, false, true)} {renderLinkItem("GITHUB", URLS.github, false, false, true)}