Skip to content

Commit

Permalink
fix: liquidity
Browse files Browse the repository at this point in the history
  • Loading branch information
andyv09 committed Feb 6, 2025
1 parent f3cd232 commit 18653d5
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions apps/frontend/src/components/PortfolioView/Overview/Liquidity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ export const Liquidity = () => {
<>{SkeletonRow}</>
) : (
<>
{!suppliedUSDC /*&& !suppliedUSDT */ ? (
{!suppliedUSDC ||
suppliedUSDC.toNumber() < 0.01 /*&& !suppliedUSDT */ ? (
<TableRow>
<TableCell colSpan={8}>
<div className="w-full text-md font-semibold text-moon flex justify-center items-center">
Expand Down Expand Up @@ -252,25 +253,25 @@ export const Liquidity = () => {
<TableCell>
<div className="flex gap-x-2 items-center text-md font-medium text-white">
<div>
{aprDataUSDC?.supplyBaseApr.times(100).toFixed(2)}% +
{aprDataUSDC?.supplyBaseApr.times(100).toFixed(2)}%
</div>
<div className="flex gap-x-1 items-center text-primary">
<Image
src={SYMBOL_TO_ICON.FUEL}
alt={'USDC'}
width={16}
height={16}
className={'rounded-full'}
/>
<div>
{' '}
{aprDataUSDC?.supplyRewardApr.times(100).toFixed(2)}
%
</div>
</div>
</TableCell>
<TableCell>
<div className="flex gap-x-1 items-center text-primary">
<Image
src={SYMBOL_TO_ICON.FUEL}
alt={'USDC'}
width={16}
height={16}
className={'rounded-full'}
/>
<div>
{' '}
{aprDataUSDC?.supplyRewardApr.times(100).toFixed(2)}%
</div>
</div>
</TableCell>
<TableCell>ha?</TableCell>
<TableCell>
<Link href="/">
<Button
Expand Down

0 comments on commit 18653d5

Please sign in to comment.