Deploy compatible protected direct wrap/unwrap contracts #1506

Closed
opened 2026-10-15 05:35:33 +00:00 by PlasticDigits · 2 comments
Owner

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.

  • Release the compatible reviewed treasury/mapper artifacts through the normal deployment path.
  • Let independently scheduled capability observations enable the existing protected direct wrap/unwrap messages.

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.

DEX PR #1463 and [companion ustr-cmm PR #62](https://git.cl8y.com/code/ustr-cmm/pulls/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. - [ ] Release the compatible reviewed treasury/mapper artifacts through the normal deployment path. - [ ] Let independently scheduled capability observations enable the existing protected direct wrap/unwrap messages. 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](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/main/docs/qa/issue-1459/RESULTS.md), [production inventory](https://git.cl8y.com/code/cl8y-dex-terraclassic/src/branch/main/docs/qa/issue-1489/production-contract-inventory.json). 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.
Author
Owner

Rollout status: protected protocol live; source + docs merged in #1531.

Deployed contracts on columbus-5 (addresses unchanged, migrated 2026-10-17):

  • wrap-mapper terra1xuuuh…nmd2 code 11729 (was 11574), execution_capabilities → direct_wrapper_floor_version:1
  • CMM treasury terra16j5u6…lr2 code 11728 (was 11667), execution_capabilities → direct_wrapper_floor_version:1
  • migrate txs 4F4DDF…51449C (mapper) and 43CA37…50A0DD (treasury), both code 0
  • live indexer GET /route/solve now returns execution_supported:true, floor_protocol_version:1, no blocker for all four direct directions

Executed protected wrap 2EF256D3CCFA8FFD94802176AFADA97E523D15F3DB652222F8EBE46AEBF1574F (code 0):
wrap_deposit 10 uusd → mapper notify_deposit mint 9,800,000 cUSTC → direct_floor_settled minimum_receive=9310000 received=9800000.

The second supplied tx A32E783FF7456F01DB9D1A1BADB3EDA1D6F3E89BC773735FEB102656973071BB is a second protected wrap (wrap_deposit_with_minimum 9,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 unwrap fee 5100 → cUSTC burn 1,000,000 → treasury instant_withdraw 994,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 in scripts/check-ust1-wrap-ops-health.sh (UST1_OPS_STRICT_CAPABILITY=1 fails on a rolled-back/legacy capability), and full evidence in docs/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).

**Rollout status: protected protocol live; source + docs merged in #1531.** Deployed contracts on columbus-5 (addresses unchanged, migrated 2026-10-17): - wrap-mapper `terra1xuuuh…nmd2` code **11729** (was 11574), `execution_capabilities` → `direct_wrapper_floor_version:1` - CMM treasury `terra16j5u6…lr2` code **11728** (was 11667), `execution_capabilities` → `direct_wrapper_floor_version:1` - migrate txs `4F4DDF…51449C` (mapper) and `43CA37…50A0DD` (treasury), both `code 0` - live indexer `GET /route/solve` now returns `execution_supported:true`, `floor_protocol_version:1`, no blocker for all four direct directions Executed **protected wrap** `2EF256D3CCFA8FFD94802176AFADA97E523D15F3DB652222F8EBE46AEBF1574F` (code 0): `wrap_deposit` 10 uusd → mapper `notify_deposit` mint 9,800,000 cUSTC → `direct_floor_settled minimum_receive=9310000 received=9800000`. The second supplied tx `A32E783FF7456F01DB9D1A1BADB3EDA1D6F3E89BC773735FEB102656973071BB` is a **second protected wrap** (`wrap_deposit_with_minimum` 9,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 `unwrap` fee 5100 → cUSTC burn 1,000,000 → treasury `instant_withdraw` 994,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 in `scripts/check-ust1-wrap-ops-health.sh` (`UST1_OPS_STRICT_CAPABILITY=1` fails on a rolled-back/legacy capability), and full evidence in `docs/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`).
Author
Owner

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 serves execution_supported:true. Evidence: docs/qa/issue-1506/README.md (merge #1532 dc5f5911).

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 serves `execution_supported:true`. Evidence: docs/qa/issue-1506/README.md (merge #1532 dc5f5911).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/cl8y-dex-terraclassic#1506
No description provided.