OE-6 remainder: client BFS fallback indicator, route-display skill cross-link, deploy create_pair fee guard (GitLab #302 follow-up) #329
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#329
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?
Parent
Follow-ups to GitLab #302 (OE-6 route display — open). MR !758 merged trade-market route row; verification (2026-06-05) FAIL on client BFS fallback indicator. Additional doc/deploy items bundled here.
Current codebase
Route display (shipped)
computeSwapRouteDisplay(frontend-dapp/src/utils/swapRouteDisplay.ts) — single execution-aligned route line; indexerrouter_operationswins over client BFS.data-testid="swap-route-summary"inSwapPage.tsx.data-testid="trade-market-route-summary"inTradeMarketOrderPanel.tsx(MR !758).skills/AGENTS_FRONTEND_SWAP_ROUTE_DISPLAY.mddocuments Swap + trade market invariants; trade market row cross-link totrade-market-route-summarytestid is partial (mentions testid in table but regression checklist could be clearer).Client BFS fallback (gap)
POST /route/solvefails or returns no ops, Swap falls back tofindRoute/findRouteWithNativeSupport(frontend-dapp/src/services/terraclassic/router.ts) — shortest-path BFS, not best output.SwapPage.tsxswapMutationprefersindexerOperations, then direct pair, then clientroute— no UI signal when submit/display uses client graph vs indexer path.clientRoute: null(pair-scoped) — fallback indicator primarily affects Swap; note if/tradeever uses client route.Deploy
create_pairfee (largely shipped)factory_create_pair()inscripts/deploy-dex-local.shattaching--amount ${PAIR_CREATION_FEE_ULUNA}ulunafrom on-chain factory config (DEFAULT_PAIR_CREATION_FEE_ULUNA= 100_000_000).scripts/qa/verify-issue-276.shgreps for fee attachment.scripts/e2e-seed-wrap-pairs.shalso attaches fee.create_pairwithout fee.Why this is needed
trade-market-route-summaryquickly fromAGENTS_FRONTEND_SWAP_ROUTE_DISPLAY.md(#302).Constraints / guardrails
findRoutepath (not when indexer ops used).swapDisclosure.tspatterns.Relevant files
frontend-dapp/src/utils/swapRouteDisplay.ts,swapRouteDisplay.test.tsfrontend-dapp/src/pages/SwapPage.tsx—swapMutation,swapRouteLine, sim queryfrontend-dapp/src/components/trade/TradeMarketOrderPanel.tsxfrontend-dapp/src/services/terraclassic/router.tsfrontend-dapp/src/utils/swapDisclosure.tsskills/AGENTS_FRONTEND_SWAP_ROUTE_DISPLAY.mdscripts/deploy-dex-local.sh—factory_create_pairscripts/qa/verify-issue-276.shdocs/frontend.md§ Swap page integration, § Trade marketRecommended direction
A. Client BFS fallback indicator
routeSource: 'indexer' | 'client_bfs' | 'direct' | 'native_wrap'to sim/submit state inSwapPage(derive from whetherswapMutationusedidxOpsvsroute).routeSource === 'client_bfs', render brief label nearswap-route-summary(e.g.data-testid="swap-route-source-client-fallback")./tradeif client route ever enabled.B. Skill cross-link (#302)
AGENTS_FRONTEND_SWAP_ROUTE_DISPLAY.mdcode map + regression checklist, add explicit anchor: Trade market route row →data-testid="trade-market-route-summary"insidetrade-market-quote.swap-route-summary) for symmetry.C. Deploy fee verification
create_pairpaths usefactory_create_pair(grep scripts).AGENTS_QA_DEPLOY_VERIFY.mdciting #318 — close deploy item as verified.verify-issue-276.sh.Acceptance criteria
findRoutegraph without indexer ops.AGENTS_FRONTEND_SWAP_ROUTE_DISPLAY.mddocumentstrade-market-route-summarywith cross-links.create_pairtxs attach on-chain fee (or documented exception when fee=0).make test-frontendgreen.Test plan — all paths
Test plan — attack / abuse / hack vectors
swapMutationbranch, not quote-onlyVerification criteria
grep -r create_pair scripts/— all use fee helper.marked as related to #302
mentioned in commit
e924ac1e0fmentioned in commit
c9a05766e9mentioned in merge request !813
Implementation complete — MR !813.
Changes
deriveSwapSubmitRouteSource+ warning labelswap-route-source-client-fallbackwhen submit uses client multihop BFS (no indexer ops).factory_create_pairfee guard.swapRouteDisplay.test.ts,SwapPage.test.tsx(854 frontend tests PASS).Deploy
create_pairaudit:scripts/deploy-dex-local.sh→factory_create_pair;scripts/e2e-seed-wrap-pairs.shattachesPAIR_CREATION_FEE_ULUNAwhen non-zero.Issue stays open until MR merge + manual indexer-down check on localnet.
mentioned in commit
81e7eb4711mentioned in commit
f07421823cmentioned in merge request !820
mentioned in commit
3258f31026mentioned in merge request !824
mentioned in issue #302
mentioned in commit
7aeb50ba58mentioned in commit
c9b20a0f9amentioned in commit
71016dae1bmentioned in commit
3d5c1eac3dmentioned in commit
47cdf2aee1mentioned in commit
afb38ee2fcmentioned in commit
b5c8b220f4mentioned in commit
ab4488e2ecmentioned in commit
a2e3809ffdmentioned in commit
2d7f59c809mentioned in issue #356
mentioned in issue #337
mentioned in merge request !864