Skip to content

Commit

Permalink
use correct pps for earn
Browse files Browse the repository at this point in the history
  • Loading branch information
timongll committed Sep 3, 2023
1 parent 6cb0e0b commit 195fc09
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions shared/src/hooks/useFetchEarnVaultData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
getVaultNetwork,
EarnVaultList,
VIPVaultList,
isEarnVault,
} from "../constants/constants";
import { isProduction, isTreasury, isVIP } from "../utils/env";
import { getVaultContract } from "./useVaultContract";
Expand Down Expand Up @@ -203,7 +202,7 @@ const useFetchEarnVaultData = (): V2VaultData => {
vault,
totalBalance,
cap,
pricePerShare: actualPricePerShare,
pricePerShare: usedPricePerShare,
round: round,
roundPricePerShare,
lockedBalanceInAsset: accountVaultBalance,
Expand Down
4 changes: 0 additions & 4 deletions webapp/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<MobileMenuOpenProps>`
Expand Down Expand Up @@ -158,7 +157,6 @@ const Header = () => {
const staking = useRouteMatch({ path: "/staking", exact: true });
const headerRef = useRef<HTMLDivElement>(null);
const [, setComponentRefs] = useGlobalState("componentRefs");
const lendLink = useLendLink();
const onToggleMenu = () => {
setIsMenuOpen(!isMenuOpen);
};
Expand Down Expand Up @@ -276,7 +274,6 @@ const Header = () => {
/>
</div>
)}
{renderLinkItem("LEND", lendLink, true, true, true, true)}
</LinksContainer>
</HeaderAbsoluteContainer>

Expand Down Expand Up @@ -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)}
Expand Down

0 comments on commit 195fc09

Please sign in to comment.