Skip to content

Commit ccff0c3

Browse files
authored
Merge pull request #63 from lidofinance/fix/minting-capacity-steth
refactor: update health factor title and rename totalMintingCapacity …
2 parents 3b1f0fd + d55112e commit ccff0c3

File tree

5 files changed

+692
-13
lines changed

5 files changed

+692
-13
lines changed

features/overview/components/health/heath.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { formatPercent, getHealthFactorColor } from 'utils';
44

55
const sectionPayloadList: SectionPayload[] = [
66
{
7-
title: 'Health factor number',
7+
title: 'Health factor',
88
key: 'healthFactorNumber',
99
},
1010
{

features/overview/contexts/vault-overview.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const VaultOverviewProvider: FC<PropsWithChildren> = ({ children }) => {
8585
balance: activeVault.balance,
8686
locked: activeVault.locked,
8787
nodeOperatorUnclaimedFee: activeVault.nodeOperatorUnclaimedFee,
88-
totalMintingCapacity: activeVault.totalMintingCapacity,
88+
totalMintingCapacityStethWei: activeVault.totalMintingCapacityStETH,
8989
});
9090

9191
const totalValue = toEthValue(activeVault.totalValue);
@@ -104,7 +104,9 @@ export const VaultOverviewProvider: FC<PropsWithChildren> = ({ children }) => {
104104
const utilizationRatio = formatPercent.format(
105105
overview.utilizationRatio / 100,
106106
);
107-
const totalMintingCapacity = toStethValue(overview.totalMintingCapacity);
107+
const totalMintingCapacity = toStethValue(
108+
overview.totalMintingCapacityStethWei,
109+
);
108110
const totalMintingCapacityStETH = toStethValue(
109111
activeVault.totalMintingCapacityStETH,
110112
);

modules/vaults/hooks/use-vault-data-table.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ const getVaultDataTable = async ({
5757
owner,
5858
totalValue,
5959
liabilityStETH,
60-
healthScore: healthScore.healthRatio,
60+
healthScore:
61+
healthScore.healthRatio > 100000 ? Infinity : healthScore.healthRatio,
6162
forcedRebalanceThresholdBP,
6263
liabilityShares,
6364
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@lidofinance/api-rpc": "^0.51.0",
2727
"@lidofinance/lido-ethereum-sdk": "^4.4.0",
2828
"@lidofinance/lido-ui": "^3.28.1",
29-
"@lidofinance/lsv-cli": "1.0.0-alpha.39",
29+
"@lidofinance/lsv-cli": "1.0.0-alpha.46",
3030
"@lidofinance/next-api-wrapper": "^0.51.0",
3131
"@lidofinance/next-ip-rate-limit": "^0.51.0",
3232
"@lidofinance/next-pages": "^0.51.0",

0 commit comments

Comments
 (0)