docs: verify and document GitLab #273 hybrid no-belief slippage floor #801
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!801
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cursor/gitlab-issue-workflow-844c"
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
GitLab #273 — hybrid book-leg slippage in the no-belief
max_spreadpath.The security fix is already on
main(commits58092d1#273 book shortfall,6cf3d7a#307 material pool leg,e1ae059frontend preflight). This MR only syncs integrator/UX docs and the agent skill test list with the merged implementation.Acceptance criteria
cargo test hybrid_no_belief_book_far_below_pool_rejected;dex-commonno_belief_rejects_book_far_below_pool_net_ratemain)max_spread.rsbook_shortfallterm; unit tests abovemain)minimum_receivevalidate_declared_hybrid_pool_leg_for_no_belief; pairassert_max_spreadper hopmain)Verification (third parties)
Doc changes (this MR)
docs/integrators.md— slippage section matches L9 / #273 / #307docs/swap-max-spread-ux.md— on-chain + preflight invariantsskills/AGENTS_MAX_SPREAD_HYBRID.md— integration test namesFollow-up (out of scope)
Pure-book hybrid (
declared_pool_input = 0) still requiresbelief_priceor routerminimum_receive— tracked separately (directions 2 & 3 in issue discussion).changed the description
changed the description
mentioned in issue #273
changed the description
Security review
Commit reviewed:
845ea37c1980db451537e47aece1ead056d0acebScope: Added/modified lines in this MR only —
docs/integrators.md,docs/swap-max-spread-ux.md,skills/AGENTS_MAX_SPREAD_HYBRID.md(markdown documentation sync for GitLab #273 / #307 hybrid no-belief slippage floor).Method: Diff review for injection, authn/authz, secret leakage, SSRF/XSS, unsafe deserialization, and supply-chain changes. Cross-checked documented invariants against canonical implementation on
main(dex_common::max_spread, pair/router early validation, frontendswapMaxSpread.tspreflight).Outcome:
FINDINGS: 0medium+This MR introduces no executable code, dependencies, or configuration. Changes describe existing on-chain and frontend slippage controls (book-leg shortfall numerator #273, material declared pool leg gate #307, pure-book /
belief_priceexceptions) that are already merged onmain. No attacker-controlled input paths, permission boundaries, or credential exposure in the diff.Inline threads: none (no medium+ findings to anchor).
Automated security review (Cursor Cloud Agent).
mentioned in commit
b9121d8392