ops: migrate columbus-5 pairs to cw2 1.18.0 and keep OBSERVATIONS #1324
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic#1324
Loading…
Add table
Add a link
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?
Summary
#1323 is on
main(c17e71d3). Pair TWAPprice × dtand both running cumulatives areUint256, and a storedu128decimal string zero-extends. That wasm is not on columbus-5 yet. Live pairs, including the one whoseObservefails adding340144359629112943994362291128760055446, stay on the old code until a pair migrate.Do
OBSERVATIONSin place. Do not rewrite cumulatives and do not add a setter.Observewithseconds_ago[0, N]returns every offset, and a small swap, provide, or withdraw moves reserves.c17e71d3is running: candleusd_legmigration,GET /api/v1/evidence/daily, and the ALPHA charts bundle.Not this ticket
2^128.Priority flag - this is currently the only pair-brick actually live, and LP is frozen behind it.
Confirmed on-chain today (2026-09-22):
terra16vxr.4006qf5hgqy, 6/18).Observereverts adding340144359629112943994362291128760055446- 99.96% of u128::MAX.oracle_updateruns before every reserve-mutating path, this is an execute brick, not just a broken TWAP read: swap / provide / withdraw all revert, so LPs cannot exit. ~$26k of LP is frozen (frozen, not lost - this migrate frees it).Scope is one pair, so it can be prioritized without ecosystem-wide urgency. I swept all 20 factory pairs. Only UST1/USTR is saturated. Every other 18-decimal pair is centuries+ out at current accrual (CL8Y-cb/cUSTC ? 1,400 yrs; cLUNC/USDT ? 207k yrs; CL8Y-cb/cLUNC ? 147k yrs; CL8Y-cb/ALPHA ? 686k yrs), and all 6/6 pairs are ~10?��% of max. UST1/USTR is uniquely fast because USTR is a low-value 18-dec token, so its raw reserve dwarfs the 6-dec side.
One de-risk before the live migrate: the stored
price_a_cumulativeon this pair is already at ~3.4e38 in the old u128 encoding. The #1323 zero-extension has to read that pre-saturated value cleanly. The current ACs verifyObserve+ a swap on the live pair after migrate - worth adding a LocalTerra/unit step that seeds anOBSERVATIONSentry at/nearu128::MAX, migrates cw2 ? 1.18.0, and assertsObserve [0,N]+ swap/provide/withdraw succeed. That proves the migrate handles an already-saturated pair before it's run against the live one, rather than finding out on columbus-5.Since this is founder-required (no auto-land), flagging for scheduling of the 2-of-3 migrate. Happy to re-verify
Observereturns and a small reserve move lands on UST1/USTR immediately after the wasm is live.PlasticDigits referenced this issue2026-09-24 09:36:00 +00:00
Verified and closed on 2026-09-24. No newer issue tracks remaining #1324 acceptance work.
Observe([0,60])returns both offsets, including a cumulative aboveu128::MAX. The{}migrate path does not writeOBSERVATIONS./gt/eventsshows changed post-event reserves between blocks 30535127 and 30535152.c17e71d3(indexered3b22f, frontend54c4868). The daily evidence API returned 200; UST1/ALPHA candles exposeusd_leg=asset_1and subject OHLC, and the production chart bundle containsusd_leg.make verify-issue-1324passed all three guards.Related: #1224, #1322, merged PR #1323, and #1315. #1232 remains separate; #465/#1231 behavior is unchanged. Runbook:
docs/runbooks/pair-twap-uint256-columbus5.md; third-party agent guidance:skills/AGENTS_PAIR_TWAP_MIGRATION.md.