fix(frontend): render multi-hop route on /trade market quote (#302) #758
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!758
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "qa/302-trade-route-display"
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?
Follow-up on #302.
/swapshows the route viacomputeSwapRouteDisplay, but/tradenever did even whensimQuery.data.indexerOperationsholds a multi-hop path. Feed the indexer operations through the same shared util and render the route line in the trade-market-quote card (mirrors/swap's swap-route-summary). Reuses the existing display util; no execution/submit path touched. tsc -b clean. Browser verification is totdking's. No closing keyword.mentioned in issue #302
Security review
Commit reviewed:
5505b8a493d636c903611758cb42b89bbfd4cda5Scope:
frontend-dapp/src/components/trade/TradeMarketOrderPanel.tsx(multi-hop route display on/trademarket quote),indexer/src/api/best_execution.rs(spawn_blockingfor path enumeration),indexer/src/api/route_paths.rs(#286 reachability gate, iterative deepening, regression tests).Outcome:
FINDINGS: 0medium+Security review: no medium+ findings on this diff.
Notes
computeSwapRouteDisplaywithgetTokenDisplaySymbol, rendered as React text ({marketRouteLine}) — no HTML injection sink. Submit/execution path untouched. Same indexer-operation display pattern as/swap.hop_distance_to_goalgate returns before DFS; admissible pruning + iterative deepening preserve shortest-path completeness within hop budget.spawn_blockingavoids stalling the async executor. Inputs:token_in/token_out(must resolve in asset registry); graph from DB pairs. Bounded byGET_DEFAULT_MAX_HOPS=3,MAX_PATH_CANDIDATES=5;/api/v1/route/solve*on LCD-heavy rate-limit layer.Prior MR security threads: none to re-report.
Inline threads: none (no findings to anchor).
Automated security review (Cursor Cloud Agent).
mentioned in commit
83e375d182mentioned in issue #321
mentioned in issue #329
mentioned in commit
3258f31026mentioned in merge request !824
mentioned in commit
3d5c1eac3dmentioned in commit
a2e3809ffdmentioned in commit
a2e3809ffd