From f2081b2282233fdf98d188882e61ec18e6d5276e Mon Sep 17 00:00:00 2001 From: Which Node Date: Sun, 11 May 2025 19:43:38 -0600 Subject: [PATCH 1/2] Add uninitialized account note --- web-app/src/modules/core/routes/Account/Account.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/web-app/src/modules/core/routes/Account/Account.tsx b/web-app/src/modules/core/routes/Account/Account.tsx index 69c7a9d8..244f15fe 100644 --- a/web-app/src/modules/core/routes/Account/Account.tsx +++ b/web-app/src/modules/core/routes/Account/Account.tsx @@ -95,8 +95,13 @@ const Account: FC = ({ accountAddress }) => { } > - // Correct balance display for un-migrated V7 slow wallets: - // If it's a slow wallet and not initialized then display unlocked as zero and balance as correct, add a note that account is not initialized + { + // Correct balance display for un-migrated V7 slow wallets: + // If it's a slow wallet and not initialized then display unlocked as zero and balance as correct, + // add a note that account is not initialized + account.initialized && (
Note: this account has not been initialized
) + } +
{data.account.balance !== null && (
From a9578c19d448ca147c5038d6823c5ac79254672e Mon Sep 17 00:00:00 2001 From: Which Node Date: Sun, 11 May 2025 19:53:39 -0600 Subject: [PATCH 2/2] Fix unlocked balance displayed in validators table --- api/src/ol/validators/validators.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/src/ol/validators/validators.service.ts b/api/src/ol/validators/validators.service.ts index 68fcab5f..b1b9fae1 100644 --- a/api/src/ol/validators/validators.service.ts +++ b/api/src/ol/validators/validators.service.ts @@ -193,7 +193,9 @@ export class ValidatorsService { const balance = await this.olService.getAccountBalance(validator.address); const currentBid = await this.olService.getCurrentBid(validator.address); const slowWallet = await this.olService.getSlowWallet(validator.address); - const unlocked = Number(slowWallet?.unlocked); + // If we hit an uninitialized V7 slow wallet we need to override the unlocked balance as zero + const initialized = await this.olService.getInitialized(validator.address); + const unlocked = initialized ? Number(slowWallet?.unlocked) : Number(0); const addr = validator.address.toString('hex').toLocaleUpperCase(); if (!handles.get(addr)) { this.logger.debug(`handles miss for address ${addr}`)