fix(qa): verify-issue-285 hybrid swap needs slippage floor for #334 guard #835
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!835
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "qa/337-verify285-slippage-floor"
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?
The live layer broadcast a pure-book hybrid swap (
pool_input:0,belief_price:null, nomin_return), which the #334 guardBookHybridRequiresSlippageFloorcorrectly rejects — so the book leg neverfilled and the #285 attribution assertion never ran (the script reported
6 passed / 3 failed on the live layer only).
Changes
Add
min_return:"1"to the live-layer hybrid swap hook so the book leg fills(mirrors contract-test
Uint128::one()pattern).Rebase / conflict resolution
Rebased onto latest
main(06eb2d8). Dropped accidental doc deletions that were present on the stale branch tip (unrelated #337 cross-links).Verification checklist
bash -n scripts/qa/verify-issue-285.shmin_returnpresent in hookgrep min_return scripts/qa/verify-issue-285.shmaingit merge mainon branch tipmake verify-issue-285This is what made the Cloud Agent's REG-00-08 #285 run fail. Relates to #285, #334, #337.
Security review
Commit reviewed:
f695c6da30450a9574a51aae6e611987c3eaa8bdScope:
scripts/qa/verify-issue-285.sh— addsmin_return:"1"to the live-layer hybrid swap hook so the #334BookHybridRequiresSlippageFloorguard allows the book leg to fill during QA verification.Outcome:
FINDINGS: 0medium+Summary
This MR touches only a LocalTerra QA verification script. It does not modify smart contracts, the indexer API, frontend code, CI secrets handling, or deployment configuration.
The added
min_return:"1"is a hardcoded slippage floor for a controlled local test swap (defaultbook_input= 1_000_000). It mirrors existing contract-test patterns (Uint128::one()) and satisfies the on-chain guard without weakening production controls — the guard itself is unchanged.Reviewed attack classes on the diff:
jq --arg/--argjsonusage unchanged; no new attacker-controlled interpolation.No inline threads — nothing to flag on specific diff lines.
mentioned in issue #337
changed the description
added 4 commits
PlasticDigits:main06eb2d8b- fix(qa): verify-issue-285 live hybrid swap needs a slippage floor for the #334 guardCompare with previous version
mentioned in commit
737f47e0ccSecurity review
Commit reviewed:
06eb2d8bb5bd7a30fa9d33e87c5d319082f06e1fScope:
scripts/qa/verify-issue-285.sh— adds hardcodedmin_return:"1"to the live-layer hybrid swap hook so the #334BookHybridRequiresSlippageFloorguard allows the book leg to fill during LocalTerra QA verification.Outcome:
FINDINGS: 0medium+Summary
This MR modifies only a LocalTerra QA verification script. It does not change smart contracts, the indexer API, frontend code, CI secrets handling, or deployment configuration.
The added
min_return:"1"is a fixed slippage floor for a controlled local test swap (defaultbook_input= 1_000_000). It mirrors existing contract-test patterns (Uint128::one()inlimit_order_tests.rs) and satisfies the on-chain guard without weakening production controls — theBookHybridRequiresSlippageFloorcheck index-common/ pair execute is unchanged.Reviewed attack classes on the diff:
jq --arg/--argjsonusage unchanged;min_returnis a literal, not interpolated from untrusted input.No inline threads — nothing to flag on specific diff lines.
mentioned in commit
ff12f65dbfmentioned in commit
e6e71f29e7mentioned in merge request !842