fix(#293): Expert Mode slippage guard — docs, verify, test alignment #830
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!830
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cursor/gitlab-issue-workflow-c78e"
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
Completes GitLab #293 acceptance from the 2026-06-06 product decision: classify excessive route slippage as a retail bug (not a decimal display bug), surface Expected slippage from indexer best-route token prices, and guard swaps with Expert Mode (default off, blocks >30% unless enabled).
Core implementation (indexer
route_slippage.rs, Swap Expert Mode UI,swapRouteSlippage.ts) was merged in prior MRs. This MR:SwapPage.test.tsxto expect wallet-aligned slippage (100.00%)docs/indexer-invariants.mddocs/frontend.mdmake verify-issue-293[3c] forslippage_percentenrichmentAcceptance checklist
SwapPage.test.tsxSwapPage.test.tsxswap-extreme-slippage-warningtestcargo test route_slippage --libdocs/indexer-invariants.md,docs/frontend.mdmake test-swarm-liquiditymake verify-issue-293live [3c]Issue left open until live verify passes in QA.
changed the description
mentioned in issue #293
changed the description
Security review
Commit reviewed:
b2f2cfbdab3c2499dd1cb8bb90b74bf344889406Scope: Documentation (
docs/frontend.md,docs/indexer-invariants.md,docs/testing.md),SwapPage.test.tsxexpectation alignment (99.97% → 100.00%), andscripts/qa/verify-issue-293.shlive QA step [3c] forslippage_percentenrichment. No production runtime code changes in this diff (core Expert Mode / route slippage logic merged in prior MRs).Method: Traced attacker-controlled inputs on modified paths. Reviewed the new QA Python block for SSRF/injection; compared against existing [3a]/[3b] patterns in the same script. Checked for auth bypass, secret leakage, XSS, and unsafe deserialization surfaces — none introduced here.
Outcome:
FINDINGS: 0medium+Security review: no medium+ findings on this diff.
Inline threads: none (no findings to anchor)
SwapPage.test.tsxverify-issue-293.sh[3c]VERIFY293_INDEXER_URLdefaults to127.0.0.1:3001; token addresses sourced from indexer/api/v1/tokens— same urllib/f-string pattern as pre-existing [3a]/[3b]; not exposed to untrusted callersmentioned in commit
be290504aamentioned in commit
017fd28130mentioned in commit
957ce1e39e