fix: size one-sided zap provide to swap min_return (#559) #1084
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!1084
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/559-zap-floor-sizing"
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
provide_liquidityto the quoted ask while the swap only guaranteedmin_return. A fill in(min_return, quote)revertedOverflow: Cannot Subat message index 3 (production UST1/cUSTC).provideAsk ≤ swapMinReturnthen ratio-trim to conservative post-swap reserves; zap-out swap/unwrap usesmin_assets+swapMinReturn. Leftover stays in the wallet (no silent ask-balance spend).AGENTS_FRONTEND_POOL_ZAP_FLOORS.md,make verify-issue-559.Closes #559
Test plan
oneSidedLiquidity,Quote,Tx,Copy)VERIFY_ISSUE_559_SKIP_E2E=1 make verify-issue-559(includes nestedverify-issue-533)e2e-smoke, 5 workers)e2e-tx, 1 worker) — seeded pair add succeeds; pre-sign is not rawmin swap 500571Cannot Sub with <fill> and <quote>at msg index 3make test-frontendon Coolify/CI for the touched filesadded 12 commits
maina932718f- Merge branch 'main' into fix/559-zap-floor-sizingCompare with previous version
mentioned in commit
da133bd380mentioned in issue #554
mentioned in issue #553
mentioned in issue #556
mentioned in issue #559
mentioned in issue #551
mentioned in issue #560