fix(pair): UpdateLimitOrderPrice same-id relink joins FIFO tail #1235
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!1235
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue/1227"
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
UpdateLimitOrderPricestill keepsorder_id(no second maker fee, no CW20). After unlink it inserts as a new arrival at the destination price (RELINK_EQUAL_PRICE_SORT_ID) so a globally older id cannot leapfrog makers already quoting that level.resting_limit_orders.walk_index;db_orderbook_simreadsORDER BY walk_index(L8 / L23).Fixes #1227
Acceptance
P, a taker that fills one maker atPfills A, not B.order_id.LimitInsertStepsExceeded/ non-owner leave the book unchanged (atomicity). Pause / expiry / blacklist gates unchanged at execute.remainingunchanged on success; no CW20 on the update tx.walk_indexpreserves DLL order.make verify-issue-1227+ pair proptest.make test-contracts: 513 passed; one pre-existing factory cw2 version pin (1.9.0vs1.10.0) unrelated to this change.Test plan
make verify-issue-1227(first pass + retest after docs grep fix)cargo test -p cl8y-dex-pair --lib prop_escrow_dll_after_random_insertscargo clippy -- -D warningsinsmartcontractsorder_idVERIFY1227_INDEXER=1 make verify-issue-1227(Postgres +indexer/.env)/tradeprice-only Edit still one tx / same row after refresh (T11, docs-only)drain skip: hard-blocked (needs-human / high-risk / human topic); remaining continue