Skip to content

Commit

Permalink
liquidation value set to N/A
Browse files Browse the repository at this point in the history
  • Loading branch information
oshioked committed Dec 7, 2022
1 parent 1c63229 commit d50c67e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
14 changes: 8 additions & 6 deletions components/BorrowForm/BorrowForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,10 @@ const BorrowForm = (props: BorrowProps) => {
<div className={styles.row}>
<div className={styles.col}>
<InfoBlock
value={`${fs(borrowedValue / collateralFactor)} ${
borrowedValue ? `(-${liqPercent.toFixed(0)}%)` : ''
}`}
// value={`${fs(borrowedValue / collateralFactor)} ${
// borrowedValue ? `(-${liqPercent.toFixed(0)}%)` : ''
// }`}
value="N/A"
valueSize="normal"
isDisabled={borrowedValue <= 0}
title={
Expand Down Expand Up @@ -414,9 +415,10 @@ const BorrowForm = (props: BorrowProps) => {
after the requested changes to the loan are approved.
</span>
}
value={`${fs(newTotalDebt / collateralFactor)} ${
borrowedValue ? `(-${newLiqPercent.toFixed(0)}%)` : ''
}`}
// value={`${fs(newTotalDebt / collateralFactor)} ${
// borrowedValue ? `(-${newLiqPercent.toFixed(0)}%)` : ''
// }`}
value={'N/A'}
valueSize="normal"
/>
</div>
Expand Down
14 changes: 8 additions & 6 deletions components/RepayForm/RepayForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,10 @@ const RepayForm = (props: RepayProps) => {
<div className={styles.row}>
<div className={styles.col}>
<InfoBlock
value={`${fs(userDebt / collateralFactor)} ${
userDebt ? `(-${liqPercent.toFixed(0)}%)` : ''
}`}
// value={`${fs(userDebt / collateralFactor)} ${
// userDebt ? `(-${liqPercent.toFixed(0)}%)` : ''
// }`}
value="N/A"
valueSize="normal"
title={
<span className={hAlign}>
Expand Down Expand Up @@ -490,9 +491,10 @@ const RepayForm = (props: RepayProps) => {
after the requested changes to the loan are approved.
</span>
}
value={`${fs(newDebt / collateralFactor)} ${
userDebt ? `(-${newLiqPercent.toFixed(0)}%)` : ''
}`}
// value={`${fs(newDebt / collateralFactor)} ${
// userDebt ? `(-${newLiqPercent.toFixed(0)}%)` : ''
// }`}
value="N/A"
valueSize="normal"
/>
</div>
Expand Down

0 comments on commit d50c67e

Please sign in to comment.