bug: Pool reserves displayed as raw integers instead of human-readable amounts #5
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pool Reserves shows 502498500503 / 497513922430 instead of formatted values like 502,498.50 / 497,513.92. Needs decimal formatting based on token decimals.
mentioned in issue #1
Fix implemented — pool reserves now display as human-readable amounts with significant figures (e.g.
502.5Kinstead of502498500503).Changes:
frontend-dapp/src/utils/formatAmount.tswithformatTokenAmount(rawAmount, decimals, sigfigs)that converts raw on-chain integers → human-readable using BigInt precision + K/M/B/T abbreviations with configurable sigfigs (default 4).formatTokenAmountwith decimals resolved from the token registry.formatNumcopies in ChartsPage/TraderPage into the shared utility, and wired TiersPage'sformatCl8ythrough it as well.@Brouie — can you verify the pool reserves look correct on both the Pools page and the Swap page trade details panel? Leaving this open until confirmed.
Verified fixed — pool reserves now show formatted amounts (e.g. 101.0K / 99.01K) via new formatAmount.ts.
mentioned in issue #18
mentioned in issue #158
mentioned in issue #148
mentioned in issue #114
mentioned in issue #209
mentioned in issue #220
mentioned in issue #321
mentioned in issue #502
mentioned in issue #529
mentioned in issue #509
mentioned in issue #510
mentioned in issue #511
mentioned in issue #588
mentioned in issue #637