diff --git a/earn/src/components/advanced/BorrowGraph.tsx b/earn/src/components/advanced/BorrowGraph.tsx
index 24bf93f0..147f4436 100644
--- a/earn/src/components/advanced/BorrowGraph.tsx
+++ b/earn/src/components/advanced/BorrowGraph.tsx
@@ -1,14 +1,14 @@
import { LABEL_TEXT_COLOR } from 'shared/lib/components/common/Modal';
import { Text } from 'shared/lib/components/common/Typography';
-import useMediaQuery from 'shared/lib/hooks/UseMediaQuery';
-import styled from 'styled-components';
-
-import BorrowGraphTooltip from './BorrowGraphTooltip';
import {
RESPONSIVE_BREAKPOINT_MD,
RESPONSIVE_BREAKPOINT_SM,
RESPONSIVE_BREAKPOINTS,
} from 'shared/lib/data/constants/Breakpoints';
+import useMediaQuery from 'shared/lib/hooks/UseMediaQuery';
+import styled from 'styled-components';
+
+import BorrowGraphTooltip from './BorrowGraphTooltip';
import Graph from '../graph/Graph';
const TEXT_COLOR = '#82a0b6';
diff --git a/earn/src/components/markets/borrow/BorrowingWidget.tsx b/earn/src/components/markets/borrow/BorrowingWidget.tsx
index ba5e09a7..868342d1 100644
--- a/earn/src/components/markets/borrow/BorrowingWidget.tsx
+++ b/earn/src/components/markets/borrow/BorrowingWidget.tsx
@@ -423,14 +423,16 @@ export default function BorrowingWidget(props: BorrowingWidgetProps) {
{selectedCollateral == null ? : }
- 1. Select an asset to use as collateral. Note that collateral is not lent out, and LLTVs
- can change up to 1% per day.
+ 1. Select an asset to use as collateral.{' '}
+
+ Note that collateral is not lent out, and LLTVs can change up to 1% per day.
+
{selectedBorrows == null ? : }
- 2. Select an asset to borrow. APRs are variable based on utilization.
+ 2. Select an asset to borrow. APR is variable and based on utilization.
diff --git a/earn/src/hooks/UseRedeem.ts b/earn/src/hooks/UseRedeem.ts
index 625bdf75..6c7d827d 100644
--- a/earn/src/hooks/UseRedeem.ts
+++ b/earn/src/hooks/UseRedeem.ts
@@ -2,12 +2,7 @@ import { lenderLensAbi } from 'shared/lib/abis/LenderLens';
import { ALOE_II_LENDER_LENS_ADDRESS } from 'shared/lib/data/constants/ChainSpecific';
import { GN } from 'shared/lib/data/GoodNumber';
import { Address, erc4626Abi, maxUint256, zeroAddress } from 'viem';
-import {
- useReadContract,
- useReadContracts,
- useSimulateContract,
- useWriteContract,
-} from 'wagmi';
+import { useReadContract, useReadContracts, useSimulateContract, useWriteContract } from 'wagmi';
export enum RedeemState {
WAITING_FOR_INPUT,
@@ -65,7 +60,7 @@ export function useRedeem(
});
const shares = sharesData ?? 0n;
- const threshold = maxShares * 999n / 1000n;
+ const threshold = (maxShares * 999n) / 1000n;
const shouldRedeemMax = shares >= threshold && maxSharesIsChanging;
/*//////////////////////////////////////////////////////////////
diff --git a/earn/src/pages/AdvancedPage.tsx b/earn/src/pages/AdvancedPage.tsx
index 2dfffd15..330aeca9 100644
--- a/earn/src/pages/AdvancedPage.tsx
+++ b/earn/src/pages/AdvancedPage.tsx
@@ -322,11 +322,7 @@ export default function AdvancedPage() {
/>
-
+
- }
- onClick={() => {}}
- />
+ } onClick={() => {}} />
diff --git a/shared/src/hooks/UseBorrowerNft.ts b/shared/src/hooks/UseBorrowerNft.ts
index 90bd3944..922e8585 100644
--- a/shared/src/hooks/UseBorrowerNft.ts
+++ b/shared/src/hooks/UseBorrowerNft.ts
@@ -208,10 +208,13 @@ export function useBorrowerNfts(
const { borrowers, refetchBorrowers } = useBorrowers(uniswapPools, borrowerNftRefs, chainId, staleTime);
const borrowerNfts = useMemo(() => {
- return borrowerNftRefs.map((borrowerNftRef, i) => ({
- ...borrowerNftRef,
- borrower: borrowers.at(i),
- } as BorrowerNft));
+ return borrowerNftRefs.map(
+ (borrowerNftRef, i) =>
+ ({
+ ...borrowerNftRef,
+ borrower: borrowers.at(i),
+ } as BorrowerNft)
+ );
}, [borrowerNftRefs, borrowers]);
return { borrowerNfts, refetchBorrowerNftRefs, refetchBorrowers };