From 864767a0b94c687a5ed53e9a2e7852c86d7f455c Mon Sep 17 00:00:00 2001 From: uncoolzero <107518216+uncoolzero@users.noreply.github.com> Date: Wed, 16 Aug 2023 19:20:59 -0300 Subject: [PATCH] Updated link --- projects/ui/src/components/Nav/Buttons/PriceButton.tsx | 4 ++-- projects/ui/src/components/Silo/SiloAssetOverviewCard.tsx | 8 +++++--- projects/ui/src/constants/links.ts | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/projects/ui/src/components/Nav/Buttons/PriceButton.tsx b/projects/ui/src/components/Nav/Buttons/PriceButton.tsx index ae2cad3fb8..109357a3fb 100644 --- a/projects/ui/src/components/Nav/Buttons/PriceButton.tsx +++ b/projects/ui/src/components/Nav/Buttons/PriceButton.tsx @@ -9,7 +9,7 @@ import BeanProgressIcon from '~/components/Common/BeanProgressIcon'; import useSeason from '~/hooks/beanstalk/useSeason'; import usePrice from '~/hooks/beanstalk/usePrice'; import { displayBeanPrice, displayBN } from '~/util/Tokens'; -import { CURVE_LINK, NEW_BN, ZERO_BN } from '~/constants'; +import { BASIN_WELL_LINK, CURVE_LINK, NEW_BN, ZERO_BN } from '~/constants'; import { useFetchPools } from '~/state/bean/pools/updater'; import { AppState } from '~/state'; import FolderMenu from '../FolderMenu'; @@ -58,7 +58,7 @@ const PriceButton: FC = ({ ...props }) => { pool={pool} poolState={beanPools[pool.address]} ButtonProps={{ - href: index === 0 ? CURVE_LINK : `https://basin.exchange/#/wells/${pool.address}`, + href: index === 0 ? CURVE_LINK : `${BASIN_WELL_LINK}${pool.address}`, target: '_blank', rel: 'noreferrer', }} diff --git a/projects/ui/src/components/Silo/SiloAssetOverviewCard.tsx b/projects/ui/src/components/Silo/SiloAssetOverviewCard.tsx index 92550bc968..42c585a598 100644 --- a/projects/ui/src/components/Silo/SiloAssetOverviewCard.tsx +++ b/projects/ui/src/components/Silo/SiloAssetOverviewCard.tsx @@ -3,11 +3,11 @@ import React from 'react'; import CallMadeIcon from '@mui/icons-material/CallMade'; import { Link, Stack, Typography } from '@mui/material'; -import { SEEDS, STALK } from '~/constants/tokens'; +import { SEEDS, STALK, BEAN_ETH_WELL_LP } from '~/constants/tokens'; import { FontSize } from '../App/muiTheme'; import Stat from '../Common/Stat'; import TokenIcon from '../Common/TokenIcon'; -import { BEANSTALK_ADDRESSES, CURVE_LINK } from '~/constants'; +import { BASIN_WELL_LINK, BEANSTALK_ADDRESSES, CURVE_LINK } from '~/constants'; import DepositedAsset from '../Analytics/Silo/DepositedAsset'; import SiloCarousel from './SiloCarousel'; @@ -47,9 +47,11 @@ const SiloAssetOverviewCard: FC<{ token: ERC20Token }> = ({ token }) => { const whitelist = useWhitelist(); const isRipeAndIsLP = token.isLP && !token.isUnripe; + const isWell = token.equals(BEAN_ETH_WELL_LP[1]); const tokenTVD = tvdByToken[token.address]; const tokenPctTVD = tokenTVD.div(total).times(100); + return ( @@ -57,7 +59,7 @@ const SiloAssetOverviewCard: FC<{ token: ERC20Token }> = ({ token }) => { {token.name} Overview {isRipeAndIsLP ? (