You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/vaults/consts/texts.ts
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -352,12 +352,12 @@ export const vaultTexts = {
352
352
partialWarning:
353
353
"Withdrawals are subject for the withdrawal queue, which is not yet supported by this UI. So you'll see the result of your request only when it's done.",
354
354
fullWarning: (amount: bigint)=>
355
-
`You are about to force-exit this validator. The entire validator's actual balance (currently ${formatBalance(amount).trimmed} ETH) will be withdrawn.`,
355
+
`You are about to force-exit this validator. The entire validator's actual balance (currently ${formatBalance(amount,{adaptiveDecimals: true}).trimmed} ETH) will be withdrawn.`,
356
356
txModal: {
357
357
loadingText: (index: number,amount: bigint)=>
358
-
`You are withdrawing ${formatBalance(amount).trimmed} ETH from the validator #${index}`,
358
+
`You are withdrawing ${formatBalance(amount,{adaptiveDecimals: true}).trimmed} ETH from the validator #${index}`,
`${formatBalance(amount).trimmed} ETH has been withdrawn from the validator #${index}`,
360
+
`${formatBalance(amount,{adaptiveDecimals: true}).trimmed} ETH has been withdrawn from the validator #${index}`,
361
361
},
362
362
},
363
363
topUp: {
@@ -370,11 +370,13 @@ export const vaultTexts = {
370
370
actionDisabled: 'Top up unavailable',
371
371
validatorWithoutPDG: `Top-ups are unavailable for this validator because it has not been proven for Predeposit Guarantee. To enable top-ups in this interface, please prove the validator.`,
372
372
depositPaused: `Top-ups are unavailable due to temporary restrictions on deposits from the stVault Balance to validators.`,
373
+
availableBalanceLow: (amount: bigint)=>
374
+
`Top-ups are unavailable due to low available balance ${formatBalance(amount,{adaptiveDecimals: true}).trimmed} ETH`,
373
375
txModal: {
374
376
loadingText: (index: number,amount: bigint)=>
375
-
`You are topping up the validator #${index} with ${formatBalance(amount).trimmed} ETH`,
377
+
`You are topping up the validator #${index} with ${formatBalance(amount,{adaptiveDecimals: true}).trimmed} ETH`,
0 commit comments