Skip to content

Commit ca46fa4

Browse files
authored
Merge pull request #61 from lidofinance/fix/health-factor-format
fix: handle health factor calculation for extreme values
2 parents ada84bc + 5ff1435 commit ca46fa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/overview/contexts/vault-overview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const VaultOverviewProvider: FC<PropsWithChildren> = ({ children }) => {
100100
forcedRebalanceThresholdBP / VAULT_TOTAL_BASIS_POINTS,
101101
);
102102
const healthFactor = formatPercent.format(healthScore / 100);
103-
const healthFactorNumber = healthScore;
103+
const healthFactorNumber = healthScore > 100000 ? Infinity : healthScore;
104104
const utilizationRatio = formatPercent.format(
105105
overview.utilizationRatio / 100,
106106
);

0 commit comments

Comments
 (0)