feat(frontend): honor Swap query params on / and /swap (#711) #1199
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!1199
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/711-swap-query-params"
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
/swapand/swap/now redirect to/withsearchandhashpreserved so aggregator/share links are not thrown away.swapQueryParamsparser applies Uniswap/Pancake/Terra aliases (inputCurrency/outputCurrency,from/to, …) after factory tokens load. Factory-gated, checksummed, gem-hidden, hostile-ignored. Optional pay amount only; never auto-submit.ust1SecondarySwapPath()now mints/?from=<ust1>&to=<quote>so/ust1secondary CTAs deep-link a real AMM pair (U1).Closes #711.
Test plan
make verify-issue-711(Vitest parser + RTL + Create Pair C542-11 + docs/skills)make verify-issue-711reteste2e/swap-query-params.spec.tswith factory tokens (PLAYWRIGHT_SKIP_CHAIN=1aftermake dev/ LocalTerra)http://127.0.0.1:5173/swap?from=uluna&to=<listed>— Pay LUNC, receive that token, change token, query does not snap backhttps://dex.cl8y.com/swap/?inputCurrency=uluna&outputCurrency=<listed>Follow-up
cl8y-web(PlasticDigits/CL8Y-web) should update DEX share/CTA hrefs to/?from=&to=(or/swap/?…) after this MR is merged. Issue opened there, gated on this merge.mentioned in issue #711
cl8y-web follow-up (gated on this merge): https://gitlab.com/PlasticDigits/CL8Y-web/-/work_items/6
Keep
https://dex.cl8y.comas the product origin. After Coolify ships this MR, point the marketing-site Trade-on-DEX row at/?from=uluna&to=<CL8Y CW20>.mentioned in issue #713
Out of scope for this MR is tracked as #713 (URL rewrite, reverse quotes, Swap Share, Create/Trade prefill). Review !1199 as inbound parse +
/swapsearch preservation only.mentioned in merge request !1200
added 8 commits
mainda9dc502- Merge origin/main into feat/711-swap-query-params.36886659- Wait for factory pairs before applying Swap query params.Compare with previous version
mentioned in commit
13d586b9f6mentioned in issue #714
mentioned in issue #716