diff --git a/liquidity/components/Amount/Amount.tsx b/liquidity/components/Amount/Amount.tsx index 94a673e9d..f993723d6 100644 --- a/liquidity/components/Amount/Amount.tsx +++ b/liquidity/components/Amount/Amount.tsx @@ -51,7 +51,7 @@ export function Amount({ > {prefix} - {isMaxUint ? 'N/A' : formattedValue} + {isMaxUint ? 'Infinite' : formattedValue} {!isMaxUint && suffix} diff --git a/liquidity/ui/src/components/Manage/ManageStats.tsx b/liquidity/ui/src/components/Manage/ManageStats.tsx index 6ab77cdfc..97a47ed59 100644 --- a/liquidity/ui/src/components/Manage/ManageStats.tsx +++ b/liquidity/ui/src/components/Manage/ManageStats.tsx @@ -252,7 +252,7 @@ export const ManageStatsUi: FC<{ lineHeight="24px" > {collateralType.issuanceRatioD18.eq(constants.MaxUint256) - ? 'N/A' + ? 'Infinite' : `Minimum ${currency(collateralType.issuanceRatioD18, { style: 'percent', minimumFractionDigits: 2, diff --git a/liquidity/ui/src/components/Pools/CollateralSection.tsx b/liquidity/ui/src/components/Pools/CollateralSection.tsx index 8dc189185..8bfc2a86a 100644 --- a/liquidity/ui/src/components/Pools/CollateralSection.tsx +++ b/liquidity/ui/src/components/Pools/CollateralSection.tsx @@ -439,7 +439,7 @@ export const CollateralSectionUi: FC<{ lineHeight="14px" color="gray.500" > - C-ratio {cRatio.lte(0) ? 'N/A' : formatPercent(cRatio.toNumber())} + C-ratio {cRatio.lte(0) ? 'Infinite' : formatPercent(cRatio.toNumber())} diff --git a/liquidity/ui/src/components/Positions/PositionsTable/PositionsRow.tsx b/liquidity/ui/src/components/Positions/PositionsTable/PositionsRow.tsx index d79a66d33..0893c3234 100644 --- a/liquidity/ui/src/components/Positions/PositionsTable/PositionsRow.tsx +++ b/liquidity/ui/src/components/Positions/PositionsTable/PositionsRow.tsx @@ -40,8 +40,8 @@ export function PositionRow({ collateralTypeAddress: collateralType.tokenAddress, }); - const parsedCRatio = cRatio.eq(0) - ? 'N/A' + const parsedCRatio = cRatio.lte(0) + ? 'Infinite' : collateralType.issuanceRatioD18.gt(cRatio) ? 'MANAGE' : 'HEALTHY'; @@ -151,7 +151,7 @@ export function PositionRow({ {debt.gt(0) ? (cRatio.toNumber() * 100).toFixed(2) + '%' : 'Infinite'} - {parsedCRatio !== 'N/A' && ( + {parsedCRatio !== 'Infinite' && (