Retail limit order UX: open orders, fees, claims, and min_return (#419) #944
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!944
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-419-retail-limit-order-ux"
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
Retail limit-order UX for #419 on
/limitsand/trade:getTraderLimitPlacements(wallet, { pair }).useLimitOrderCancelMutation); manual Order ID cancel is collapsed under Advanced.bpsToPercentLabel) — not bps-only jargon.remaining_escrow < 10→ Claim dust).Docs:
docs/limit-orders.md,docs/frontend.md,skills/AGENTS_FRONTEND_LIMIT_PARKED_EXPIRED.md.Acceptance checklist
make test-frontend—LimitOrderMyPlacementsPanel.test.tsxcancel row test; manual:/limits→ My open limits → Cancel on rowLimitOrderPreSubmitSummary.test.tsx; manual: pre-submit shows "Small fee… about 0.15%"limitPlacementLifecycle.test.ts;LimitOrderMyPlacementsPanel.test.tsxClaim dust; manual: parked sectionsmin_return/ belief price requirement surfaced before hybrid market submitTradeMarketOrderPanel.submitSnapshot.test.tsxhybrid notice; manual:/tradeMarket tab hybrid copyLimitOrderMyPlacementsPanel.test.tsxpaused tests; existing pause bannersBlockers: Screenshot acceptance items need manual capture on LocalTerra (functionality verified via unit tests).
Verification checklist (third parties)
Manual (needs
make setup-cloud-localterra+make dev):/limits— connect wallet, place a limit, confirm My open limits shows the row with Cancel (no Order ID typing)./trade→ Market tab — enable hybrid; confirm min return notice before submit.Security review — MR !944
Commit reviewed:
15802093ed5b5280392a5effc51ce21aa8936a65Scope: Retail limit-order UX (#419) —
LimitOrderMyPlacementsPanelone-click cancel/claim, wallet-scopedgetTraderLimitPlacements, fee/min-return copy, dust vs expired partitioning, docs/skills/tests. Frontend-only; no smart-contract or indexer handler changes in this diff.Method: Traced attacker-controlled inputs (indexer rows, order IDs, error strings) to sinks (React render, cancel/claim mutations, confirm dialogs). Verified on-chain controls for
CancelLimitOrder/ClaimExpiredLimitOrder(owner check +gate_trading_blacklist+ pause gate insmartcontracts/contracts/pair/src/contract.rs).Outcome: FINDINGS: 0 medium+
No inline threads — nothing met the reporting bar.
Areas checked (no issues)
order_idfrom wallet-scoped indexer data; mutations call existinguseLimitOrderCancelMutation/useLimitExpiredClaimMutation→ on-chain owner + blacklist enforcement. Wrong/third-party IDs revert (Unauthorized), not fund loss.TxResultAlert→humanizeUserFacingError. NodangerouslySetInnerHTMLadded.getTraderLimitPlacementsuses existingpathSegment(encodeURIComponent); no new SSRF surface.getPairLimitPlacements+ client filter togetTraderLimitPlacements(wallet, { pair })reduces exposure of other makers' order metadata in the browser./limitsLimitOrdersPagepanel omitscancelDisabled/claimsDisabledprops that/tradepasses — pre-existing page never wireduseTradingBlacklist; on-chain still blocks blacklisted senders. Gas-waste UX only, not an exploitable bypass.Label:
block:securitynot applied.mentioned in commit
aac5dcea3a