WIP: Draft: feat(frontend): Swap/Trade unfunded-pay acquire guidance (#678) #1184
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!1184
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "678-feat-frontend-swap-extreme-size-unfunded-pay-guidance-acquire-ust1-retail-slippage-"
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
evaluateSwapPayAcquireGuidanceso oversized/unfunded pay amounts no longer look like an executable offer./ust1?direction=deposit&amount=from inverseeffective_swapmath, clamped to per-tx / rolling remaining./ust1prefillsdirection+amountonly; hostile query strings are ignored. 5% / 30% / 99% / Expert Mode gates are unchanged. U1: Guide is/ust1, never AMM-as-mint.Closes #678.
Test plan
make verify-issue-678(run + retest, PASS=7)/ust1prefill unit testsSwapPage.test.tsx(#293 Expert Mode) +Ust1Page.test.tsx+ Trade submit snapshot still pass/ust1with a legal deposit (≤ 1,000 UST1 / remaining 24h)e2e/ust1-window.spec.tshappy path without query params)Closes #678
mentioned in merge request !1185
Pull request closed