Deploy compatible protected direct wrap/unwrap contracts #1506
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#1506
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
DEX PR #1463 and companion ustr-cmm PR #62 implemented positive minimum-receive messages and atomic rollback enforcement. The retained production inventory has no established version-1 wrapper capability or matching reviewed mapper/treasury artifacts; the compatible companion rollout remains unfinished.
Done when the deployed protocol enforces the reviewed positive receive floor for direct wrap/unwrap. Unknown or legacy capabilities must continue to block signing; preserve exact message/floor binding and atomic rollback.
The protected-wrapper source implementation, bounded wallet enrollment and composed inverse work are complete. Nonzero cooldown/AutoLP remains intentionally unsupported under the accepted fail-closed alternative. This issue covers the protocol rollout, with no physical-wallet review task.
Sources: #1456, #1459; implemented scope, production inventory.
Split from #1504 at the user's request. Original issues #1449–#1500 remain closed. Historical failures remain evidence; use focused regression checks for actual changes. Wallet/device checks and broad verification-only acceptance chores are excluded.
Rollout status: protected protocol live; source + docs merged in #1531.
Deployed contracts on columbus-5 (addresses unchanged, migrated 2026-10-17):
terra1xuuuh…nmd2code 11729 (was 11574),execution_capabilities→direct_wrapper_floor_version:1terra16j5u6…lr2code 11728 (was 11667),execution_capabilities→direct_wrapper_floor_version:14F4DDF…51449C(mapper) and43CA37…50A0DD(treasury), bothcode 0GET /route/solvenow returnsexecution_supported:true,floor_protocol_version:1, no blocker for all four direct directionsExecuted protected wrap
2EF256D3CCFA8FFD94802176AFADA97E523D15F3DB652222F8EBE46AEBF1574F(code 0):wrap_deposit10 uusd → mappernotify_depositmint 9,800,000 cUSTC →direct_floor_settled minimum_receive=9310000 received=9800000.The second supplied tx
A32E783FF7456F01DB9D1A1BADB3EDA1D6F3E89BC773735FEB102656973071BBis a second protected wrap (wrap_deposit_with_minimum9,525,900 uusd → 9,335,382 cUSTC), not an unwrap. So there is no executed protected unwrap receipt yet.Protected unwrap path verified by simulating the exact signed tx against columbus-5 (1 cUSTC, floor 900000): mapper
unwrapfee 5100 → cUSTC burn 1,000,000 → treasuryinstant_withdraw994,900 →direct_floor_settled minimum_receive=900000 received=979977(gas 577,065 / 1,200,000). The unwrap broadcast itself is the only custody-gated item left.Also completed: mainnet wrap registry code IDs,
[2c]direct-wrapper floor capability probe inscripts/check-ust1-wrap-ops-health.sh(UST1_OPS_STRICT_CAPABILITY=1fails on a rolled-back/legacy capability), and full evidence indocs/qa/issue-1506/README.md.Leaving this open until the live protected unwrap broadcast exists; everything else is verified. Detail:
docs/qa/issue-1506/README.md, merge #1531 (b1181cb8).Live protected unwrap received:
902DF32EE8EC7F7B91F418814C41CC3C84903C8A8067238588513E2943E5683E(block 30874148, 2026-10-17T06:26:40Z, code 0). cUSTC send 19,135,382 → mapper unwrap fee 97,590 → cUSTC burn 19,135,382 → treasury instant_withdraw 19,037,792 uusd →direct_floor_settled minimum_receive=17814615 received=18752226. Both directions now have executed mainnet receipts; capability v1 is live on codes 11728/11729 and the indexer servesexecution_supported:true. Evidence: docs/qa/issue-1506/README.md (merge #1532dc5f5911).