Portfolio: hide non-economic (test gem) token performance from Open Positions / P&L #674
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#674
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?
Summary
The /portfolio page's Open Positions table (and the associated realized P&L / cost basis) currently includes soft-launch test-gem pairs like EMBER/CORAL. These tokens have no economic meaning, so surfacing net position, avg entry, cost basis and realized P&L for them clutters the page and can mislead users into reading test activity as real performance.
Follow-on to #534 (economic-first pair classification + "Test pairs" divider) and #551 (portfolio P&L). The portfolio should apply the same economic/test split that the pair selector already uses.
Actual
Open Positions lists gem pairs with full metrics, e.g.:
Expected
Open Positions, realized P&L, cost basis, and any volume/fees totals hide the soft-launch test gems by default: EMBER, CORAL, JADE, TOPAZ, ONYX, RUBY, PEARL, QUARTZ. All real assets stay (CL8Y, UST1, USTR, cLUNC, cUSTC, vFDUSD, SpaceUSD, etc.).
Prefer a "Show test pairs" toggle / "Test pairs" divider (mirroring #534) over hard removal, so QA/testers can still see gem activity — but the default view is real-assets-only.
Notes
mentioned in issue #675
mentioned in merge request !1177
Implemented on !1177.
Done
/portfolioOpen Positions by default#534isTestPair/isGemTokenId(no second list)AGENTS_FRONTEND_PORTFOLIO_TEST_PAIRS.md+make verify-issue-674Not in this change
/traderpublic profile still lists every pair (intentional — P674-5)traders.total_volume_usdstays indexer-wide (no client subtract — P674-7)mentioned in commit
e4bab0fb4ementioned in commit
06a40e8511mentioned in issue #686
marked as related to #686
Merged via !1177 (
e4bab0fb) ontomain36d64528. Conflict union with !1179 kept Show test pairs + Mark/Unrealized on the same table.make verify-issue-674PASS (7/7). Playwright SKIP — LocalTerra not up this pass. Coolify leftover: frontend rebuild from36d64528+. Do not reopen unless P674 is wrong. Post-merge ops: #686.