fix(pair): named min-size for dust limit rungs (#1219) #1296
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!1296
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue/1219-limit-min-size"
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?
Closes #1219
Pair place now rejects post-fee remaining below the L16 dust floor of 10 with named
LimitOrderAmountTooSmall. Descendingladder_pricessteps by absolute span so 18-vs-6 raw 3 to 1 no longer overflows. Official dApp disables Place on dust rungs.Summary
min_limit_place_remaining()equalsLIMIT_ORDER_DUST_FLUSH_THRESHOLD(10).LimitInsertStepsExceededskip).ladder_pricesuses|end−start|so descending equal-dec 3→1 and 18-vs-6Decimal::raw(3)→raw(1)place withoutOverflow: Cannot Sub./tradeticket and/limitsladder show Minimum size is 10 units and do not sign dust rungs.make verify-issue-1219.Acceptance
countrungs; prices monotonic toward end; amounts sum to total (equal-dec and 18-vs-6 raw 3→1).limit_discount_bps = 10000) cannot place amount < 10; spam batch named-rejects.AGENTS_LIMIT_ORDER_BATCH_LADDER.md+make verify-issue-1219.Out of scope (issue)
limit-orders-tx5-rung (needs full chain).CleanLimitBookdefaults /remaining × price < 1(#1225 / #264).Verify
Ran twice in this worktree (4/4). Also retested
dust_price_rejected,ladder_five_rungs,match_dust_flush_bid_hybrid.Manual leftover:
/limitsladder total that splits under 10 → no wallet popup; raise total → place. Descending start/end on UST1/USTR.drain skip: no occupying job for rebase/fix-pr/CI-wait; remaining continue