Skip to content

Commit

Permalink
wording (#355)
Browse files Browse the repository at this point in the history
* wording

* other
  • Loading branch information
jmzwar authored Jul 10, 2024
1 parent 0ca12a0 commit 9310c4c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion liquidity/components/Amount/Amount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function Amount({
>
<span data-testid={testid}>
{prefix}
{isMaxUint ? 'N/A' : formattedValue}
{isMaxUint ? 'Infinite' : formattedValue}
{!isMaxUint && suffix}
</span>
</Tooltip>
Expand Down
2 changes: 1 addition & 1 deletion liquidity/ui/src/components/Manage/ManageStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion liquidity/ui/src/components/Pools/CollateralSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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())}
</Text>
</Flex>
</Tooltip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -151,7 +151,7 @@ export function PositionRow({
<Text color="white" fontWeight={700} lineHeight="1.25rem" fontFamily="heading">
{debt.gt(0) ? (cRatio.toNumber() * 100).toFixed(2) + '%' : 'Infinite'}
</Text>
{parsedCRatio !== 'N/A' && (
{parsedCRatio !== 'Infinite' && (
<Badge
colorScheme={parsedCRatio === 'MANAGE' ? 'red' : 'green'}
border="1px solid"
Expand Down

0 comments on commit 9310c4c

Please sign in to comment.