fix(frontend): default slippage protection to 5% (#497) #1030
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!1030
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/497-default-slippage-5pct"
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
DEFAULT_SLIPPAGE_TOLERANCE_PERCENT) so normal trade sizes stop tripping insufficient-liquidity warnings (#497).SLIPPAGE_TOLERANCE_PRESETS_PERCENT(0.5 / 1 / 5) and keep the high-protection warn only for values strictly above 5%.docs/swap-max-spread-ux.md/docs/frontend.mdand add agent playbookskills/AGENTS_FRONTEND_DEFAULT_SLIPPAGE.md.Acceptance criteria (#497)
slippageTolerance).Test plan
npm run test:run -- src/utils/__tests__/slippageProtectionCopy.test.tsnpm run test:run -- src/pages/SwapPage.test.tsx -t 'shows labeled action, pair, amounts, max spread'npm run test:run -- src/components/trade/__tests__/TradeMarketOrderPanel.submitSnapshot.test.tsx -t 'shows labeled pre-sign confirmation'/→ Settings shows 5% selected; confirm summaryswap-confirm-max-spread=5%trade-market-slippage-preset-5active by defaultCloses #497
Bugbot is not enabled for your account, so this pull request was not reviewed.
Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.
mentioned in commit
6c0e51e234