Skip to content

Commit

Permalink
housekeeping + update URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Space-Bean committed Dec 2, 2023
1 parent f77e5a9 commit 65ff5f3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const RemoveLiquidityContent = ({ well, slippage, slippageSettingsClickHandler,
const { reserves: wellReserves, refetch: refetchWellReserves } = useWellReserves(well);
const sdk = useSdk();

const lpBalance = getPositionWithWell(well)?.external;
const lpBalance = useMemo(() => getPositionWithWell(well)?.external, [getPositionWithWell, well]);

useEffect(() => {
const run = async () => {
Expand Down
21 changes: 9 additions & 12 deletions projects/dex-ui/src/components/Well/LiquidityBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import { useLPPositionSummary } from "src/tokens/useLPPositionSummary";
import { useBeanstalkSiloWhitelist } from "src/wells/useBeanstalkSiloWhitelist";
import { LoadingItem } from "src/components/LoadingItem";
import { Well } from "@beanstalk/sdk/Wells";
import { Info } from "../Icons";
import { useIsMobile } from "src/utils/ui/useIsMobile";
import { Info } from "src/components/Icons";

type Props = {
well: Well | undefined;
Expand All @@ -38,8 +37,6 @@ const displayTV = (value?: TokenValue) => (value?.gt(0) ? value.toHuman("short")
export const LiquidityBox: FC<Props> = ({ well: _well, loading }) => {
const well = useMemo(() => _well, [_well]);

const isMobile = useIsMobile();

const { getPositionWithWell } = useLPPositionSummary();
const { getIsWhitelisted } = useBeanstalkSiloWhitelist();

Expand Down Expand Up @@ -97,11 +94,11 @@ export const LiquidityBox: FC<Props> = ({ well: _well, loading }) => {
&nbsp;for yield.
</div>
}
offsetX={isMobile ? -40 : -1}
offsetX={-40}
offsetY={350}
side="bottom"
arrowSize={4}
arrowOffset={50}
arrowSize={0}
arrowOffset={0}
width={270}
>
<Info color="#4b5563" />
Expand All @@ -120,15 +117,15 @@ export const LiquidityBox: FC<Props> = ({ well: _well, loading }) => {
<a className="underline" href="https://app.bean.money/#/balances" target="_blank" rel="noopener noreferrer">
Farm Balances
</a>
&nbsp;allow Beanstalk users to hold assets in the protocol on their behalf. Using
Farm Balances can reduce gas costs and facilitate efficient movement of assets within Beanstalk.
&nbsp;allow Beanstalk users to hold assets in the protocol on their behalf. Using Farm Balances can reduce gas costs
and facilitate efficient movement of assets within Beanstalk.
</div>
}
offsetX={isMobile ? -40 : -1}
offsetY={630}
offsetX={-40}
offsetY={525}
arrowOffset={0}
side="bottom"
arrowSize={4}
arrowSize={0}
width={270}
>
<Info color="#4b5563" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const MultiFlowPumpTooltip: FC<{
<div className="container-title">Multi Flow Pump</div>
<div className="content">
The&nbsp;
<a className="content-link" href="/" target="_blank" rel="noopener noreferrer">
<a className="content-link" href="/multi-flow-pump.pdf" target="_blank" rel="noopener noreferrer">
Multi Flow Pump
</a>
, an inter-block MEV manipulation resistant oracle, stores reserve data from this Well. In particular, Multi Flow stores
Expand Down

0 comments on commit 65ff5f3

Please sign in to comment.