Raise default route impact / slippage protection from 0.5% to 5% #497
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#497
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?
Summary
Default frontend slippage / route impact protection is 0.5%, which is too low. The protection used for the insufficient-liquidity (route impact) warning should default to 5%, not 0.5%.
Current behavior
Zustand store default:
slippageTolerance: 0.5infrontend-dapp/src/stores/dex.ts.That value is passed on-chain as
max_spread(slippageTolerance / 100) and drives the Swap insufficient-liquidity copy:With a 0.5% default, normal trade sizes often trip the preflight / insufficient-liquidity warning even when liquidity is acceptable for retail users.
Expected behavior
slippageToleranceshould be 5 (5%).0.5%as the default (e.g. Swap / Trade confirm max-spread expectations) are updated accordingly.Relevant files
frontend-dapp/src/stores/dex.ts—slippageTolerance: 0.5frontend-dapp/src/pages/SwapPage.tsx— insufficient liquidity warning + settings presets[0.1, 0.5, 1.0]frontend-dapp/src/components/trade/TradeMarketOrderPanel.tsx— trade surface uses same store default0.5%(Swap / Trade pre-submit summaries)Acceptance criteria
mentioned in commit
0f34a036a9mentioned in merge request !1030
mentioned in commit
6c0e51e234mentioned in issue #528
marked as related to #528
mentioned in issue #533
mentioned in issue #559
mentioned in issue #595
mentioned in issue #678
marked as related to #678
mentioned in issue #693