fix: humanize tape Amount in/out and invert Price (#557) #1093
No reviewers
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!1093
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/557-tape-human-amounts"
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?
Summary
Humanize Amount in / Amount out / Price on Charts, Trade, Trader, Portfolio tape and wallet pair history (#557).
Indexer JSON/CSV keep raw integer digit strings (plain, never
1e+19) and addoffer_decimals/ask_decimals(fills:token0_decimals/token1_decimals) from indexedassets.decimals. The dApp scales withformatTapeAmount/formatTapePrice. Charts/Trade invert reciprocates human Price only; amounts stay offer → ask. Buy/sell color follows display-base (A11).Closes #557.
What changed
bd_plain_stringso 18-dec raw amounts stay parseable by JSBigInt.tradeTapeDisplay.ts;TradesTable+ wallet history use it; Charts/Trade passinverted.docs/indexer-invariants.md,skills/AGENTS_FRONTEND_TAPE_AMOUNTS.md,make verify-issue-557.Acceptance (issue + notes)
1/206class, not1.000M.10, notT.TradesTablewith Charts.formatPairPrice); never USD; never compactTfrom raw 18/6.make verify-issue-557(passed twice); docs/invariants/skill.Out of scope (not in this MR)
dex.cl8y.com/chartsTest plan
make verify-issue-557(docs greps, indexer lib + integration, frontend RTL) — 2/2T; invert Price; buy color; wallet history/trader/{addr}mixed UST1/cUSTC and UST1/USTR rowsCloses #557
marked this merge request as ready
added 11 commits
maine6b3d682- Merge origin/main into fix/557-tape-human-amounts.Compare with previous version
mentioned in commit
f36aedac2amentioned in issue #557
mentioned in issue #573