Skip to content

[Dashboard] Fix transaction amounts/symbols for multi-token support#3813

Merged
flopez7 merged 7 commits intodevelopfrom
flopez/dashboard-transactions
Mar 10, 2026
Merged

[Dashboard] Fix transaction amounts/symbols for multi-token support#3813
flopez7 merged 7 commits intodevelopfrom
flopez/dashboard-transactions

Conversation

@flopez7
Copy link
Contributor

@flopez7 flopez7 commented Mar 5, 2026

Issue tracking

None

Context behind the change

Transactions were always treated as HMT (18 decimals). Multi-token values (e.g. USDC 6 decimals) were displayed incorrectly.
Now:

  • Server now resolves token decimals/symbol per transaction token and formats amounts accordingly.
  • Added token data cache.
  • tokenSymbol is nullable when token address is missing.
  • Client now uses dynamic symbol (not hardcoded HMT) and shows - when amount is 0 and symbol is missing.
  • Renamed front formatter to formatTokenAmount.

How has this been tested?

Deployed dashboard locally.
Ran unit tests.

Release plan

Deploy new dashboard backend and frontend

Potential risks; What to monitor; Rollback plan

None

@vercel
Copy link

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

5 Skipped Deployments
Project Deployment Actions Updated (UTC)
faucet-frontend Ignored Ignored Preview Mar 10, 2026 9:27am
faucet-server Ignored Ignored Preview Mar 10, 2026 9:27am
human-app Skipped Skipped Mar 10, 2026 9:27am
human-dashboard-frontend Skipped Skipped Mar 10, 2026 9:27am
staking-dashboard Skipped Skipped Mar 10, 2026 9:27am

Request Review

@flopez7 flopez7 self-assigned this Mar 5, 2026
@flopez7 flopez7 requested a review from portuu3 March 5, 2026 12:44
@vercel vercel bot temporarily deployed to Preview – staking-dashboard March 5, 2026 12:44 Inactive
@vercel vercel bot temporarily deployed to Preview – human-app March 5, 2026 12:44 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend March 5, 2026 12:44 Inactive
@flopez7 flopez7 moved this to In Review in Core tech - 2026 (H1) Mar 6, 2026
…ed components

- Add  in-flight token logic to avoid duplicated calls on cold starts
@vercel vercel bot temporarily deployed to Preview – human-app March 9, 2026 14:14 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend March 9, 2026 14:14 Inactive
@vercel vercel bot temporarily deployed to Preview – staking-dashboard March 9, 2026 14:14 Inactive
@flopez7 flopez7 requested a review from dnechay March 9, 2026 14:31
Copy link
Collaborator

@dnechay dnechay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm overall, two questions open

@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend March 9, 2026 15:05 Inactive
@vercel vercel bot temporarily deployed to Preview – human-app March 9, 2026 15:05 Inactive
@vercel vercel bot temporarily deployed to Preview – staking-dashboard March 9, 2026 15:05 Inactive
@flopez7 flopez7 requested a review from dnechay March 9, 2026 15:06
dnechay
dnechay previously approved these changes Mar 9, 2026
Co-authored-by: Dmitry Nechay <dmitry@hmt.ai>
@vercel vercel bot temporarily deployed to Preview – human-app March 9, 2026 16:18 Inactive
@vercel vercel bot temporarily deployed to Preview – staking-dashboard March 9, 2026 16:18 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend March 9, 2026 16:18 Inactive
@flopez7 flopez7 mentioned this pull request Mar 9, 2026
18 tasks
@vercel vercel bot temporarily deployed to Preview – human-app March 10, 2026 09:27 Inactive
@vercel vercel bot temporarily deployed to Preview – staking-dashboard March 10, 2026 09:27 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend March 10, 2026 09:27 Inactive
@flopez7 flopez7 merged commit 732197c into develop Mar 10, 2026
13 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in Core tech - 2026 (H1) Mar 10, 2026
@flopez7 flopez7 deleted the flopez/dashboard-transactions branch March 10, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants