fix(e2e): add min_return slippage floor to pure-book park hybrid swaps (#339) #842
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!842
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "qa/339-seed-park-min-return"
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?
What
scripts/e2e-seed-expired-parked-claim-all.shandscripts/qa/verify-issue-309.shexecute a pure-book hybrid swap (pool_input:"0",book_input>0) with nobelief_priceand nomin_return. The #334 L9 guard (BookHybridRequiresSlippageFloor) rejects that on execute, so the park swap reverts and no orders park — which breakslimit-orders-claim-all-tx.spec.tsand the #292 stricte2e-txphase.Fix
Add
min_return:"1"to theCw20HookMsg::Swapin both harnesses.min_returnoverbelief_price— a scripted terrad path has no oracle, and the floor is all the guard needs (matches the guardrail in #339 and theverify-issue-285.shfix in !835). #334 is untouched on-chain; harness-only.Verified live
Ran
e2e-seed-expired-parked-claim-all.shend to end: the park swap that used to revert executes clean, and both expired bids land atlifecycle_status=parked_expiredin one tx — restoring the >=2parked_expiredrows the claim-all helper polls for.verify-issue-309.shgot the same one-line floor (not re-run in full; same contract path).Relates to #339.
mentioned in issue #337
mentioned in issue #339
Pull request closed