Skip to content

Commit

Permalink
Updated link
Browse files Browse the repository at this point in the history
  • Loading branch information
uncoolzero committed Aug 16, 2023
1 parent 1c2a6d9 commit 864767a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions projects/ui/src/components/Nav/Buttons/PriceButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -58,7 +58,7 @@ const PriceButton: FC<ButtonProps> = ({ ...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',
}}
Expand Down
8 changes: 5 additions & 3 deletions projects/ui/src/components/Silo/SiloAssetOverviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -47,17 +47,19 @@ 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 (
<Module>
<ModuleHeader>
<Row gap={2} justifyContent="space-between">
<Typography variant="h4">{token.name} Overview</Typography>
{isRipeAndIsLP ? (
<Link
href={CURVE_LINK}
href={isWell ? `${BASIN_WELL_LINK}${token.address}` : CURVE_LINK}
target="_blank"
rel="noreferrer"
underline="none"
Expand Down
1 change: 1 addition & 0 deletions projects/ui/src/constants/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const CODE_OF_CONDUCT_LINK =
'https://github.com/BeanstalkFarms/Beanstalk/blob/master/CODE_OF_CONDUCT.md';
export const CURVE_LINK_OLD = 'https://curve.fi/factory/81/';
export const CURVE_LINK = 'https://curve.fi/factory/152/';
export const BASIN_WELL_LINK = 'https://basin.exchange/#/wells/';
export const LUSD_LINK = 'https://curve.fi/factory/103/';
export const DUNE_LINK = 'https://dune.xyz/tbiq/Beanstalk';
export const NETLIFY_LINK = 'https://www.netlify.com/';
Expand Down

0 comments on commit 864767a

Please sign in to comment.