fix: price portfolio realized P&L from DEX hub marks #1090
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!1090
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/560-hub-pnl-usd"
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
/portfolioand/trader/:addrnow converts viaGET /api/v1/hub-prices(same source as the Protocol DEX card). UST1 is no longer$1; USTR is no longer2.5 ×USTC. Unpriced hubs are omitted, not$0. CEX/oracle/price/ustris still unused (400).PnlValue), notN/A(P551-5).GET /api/v1/traders/{addr}/positions(symbol —, decimals omitted) so the UI can render — instead of dropping the row.skills/AGENTS_FRONTEND_HUB_PNL.md,make verify-issue-560.Implements the code follow-up on #560. Does not close the issue: Coolify rebuild, Android #554 device QA, live #559 Add, and hub
backfill_swap_volume_usdremain ops/manual.Test plan
make verify-issue-560(docs + source guards + indexer mapper +get_trader_positions_returns_rows+ frontend Vitest) — 5/5, retestedmake verify-issue-551still green (human-scale rows unchanged)npm ci) after merge so production header matches hub UST1 (~$0.976), not$1terra12z8v…) — header USD ≈ hub UST1 × human P&L, not$38for+38.29 UST1/protocolDEX hub card still loads;GET /api/v1/oracle/price/ustrstill 400/traderis —, notN/AImplements the code follow-up for #560 (hub P&L USD, Best/Worst em dash, missing-asset position rows). Ops/manual AC remains open.
mentioned in issue #560
added 8 commits
maindc93f760- Merge origin/main into fix/560-hub-pnl-usd.Compare with previous version
mentioned in commit
a6f44c1881mentioned in issue #573