Skip to content

Commit

Permalink
fix: reduce label change
Browse files Browse the repository at this point in the history
  • Loading branch information
k0beLeenders authored and chambaz committed Nov 28, 2023
1 parent 3b0e229 commit 9f0297b
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,14 @@ const AssetRow: FC<{
<Typography color="inherit" style={{ fontFamily: "Aeonik Pro" }}>
{isReduceOnly ? "Reduce Only" : isBankHigh && (isBankFilled ? "Limit Reached" : "Approaching Limit")}
</Typography>
{`${bank.meta.tokenSymbol} ${isInLendingMode ? "deposits" : "borrows"} are at ${percentFormatter.format(
(isInLendingMode ? bank.info.state.totalDeposits : bank.info.state.totalBorrows) / bankCap
)} capacity.`}

{isReduceOnly
? "stSOL is being discontinued."
: `${bank.meta.tokenSymbol} ${
isInLendingMode ? "deposits" : "borrows"
} are at ${percentFormatter.format(
(isInLendingMode ? bank.info.state.totalDeposits : bank.info.state.totalBorrows) / bankCap
)} capacity.`}
<br />
<a href="https://docs.marginfi.com">
<u>Learn more.</u>
Expand Down

0 comments on commit 9f0297b

Please sign in to comment.