Post-#536 follow-ups: factory pointer after migrate, LocalTerra inherit check, dApp registry query #538
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#538
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?
Gate
Blocked on !1065 merge. Do not start until factory 1.8.0 + pair 1.14.0 are on the target branch.
Related: #536. Playbook:
skills/AGENTS_FACTORY_DISCOUNT_REGISTRY.md. Invariants F5 / I14.Why
!1065 snapshots
config.discount_registryinto new pairs atCreatePair. After migrate, existing columbus-5 factory state still loads that field asNoneuntil All/Batch orUpdateConfig. #536 unit tests passed; the LocalTerra live create-pair check and dApp consume ofGetDiscountRegistrywere left out of that MR.Scope
{"config":{}}→discount_registry. Ifnull, runset_discount_registry_all/_batchonce (orupdate_config { discount_registry }) so the next listing inherits. Pre-migrate listings stay unwired until that sweep or a per-pair set.create_pair, query the new pair{"get_discount_registry":{}}, confirm it matches the factory pointer with no follow-upSetDiscountRegistry.getPairDiscountRegistry()exists in !1065; Swap/Pool still assume every pair is wired. Consume the query so the fee-tier UI does not show a discount that the pair will not apply.Out of scope
Verify
config.discount_registryis the fee-discount contract after migrate + All/Batch orUpdateConfigGetDiscountRegistrymatches factory pointer without a follow-up setGetDiscountRegistryinstead of assuming wiredmarked as related to #536
mentioned in merge request !1065
Start after !1065 merges (factory 1.8.0 + pair 1.14.0 on main). Related to #536 / !1065. This issue is not closed by that MR.
GitLab native
/blocked_byis not available on this project's license; the gate is the related MR plus the description above.mentioned in issue #536
Gate is open: !1065 is on
main(651cb642). Factory 1.8.0 + pair 1.14.0 are on the target branch.!1066 also landed (#537 chrome uses LCD raw
discount_registry+ fail-closed). Item 3 (optional dAppGetDiscountRegistry) can replace the raw-state path after migrate; until then the #537 probe remains the live path.mentioned in merge request !1072
Ops item 1 (factory pointer after migrate) is done on columbus-5.
terra1ejpgvv7g3hj0u6fpcnxhflqp84g0w3cnaskqkg5733ygwlmf963sfchseais wasm 11585 (1.8.0){"config":{}}→discount_registry= fee-discountterra1wcczsdk7jwj99n3my6wx8wr4ee0hn6yaapgd792lgx5elrdtrn2scfnecz,pair_code_id11586GetDiscountRegistrymatches the factory pointerLeaving this issue open for:
SetDiscountRegistry)GetDiscountRegistry(Swap/Pool still assume wired unless #537 raw probe)Optimizer checksums for 11585/11586 are on !1072.
Frontend/indexer redeploy does not finish this issue.
Still true:
discount_registryis set; 13 pairs on 1.14.0 answerGetDiscountRegistryconfig.discount_registry= fee-discount; existing pairs return the same registry viaGetDiscountRegistryStill not done:
create_pairinherit (no follow-upSetDiscountRegistry) — current local pairs may have been wired bydeploy-dex-local.shbelt-and-suspenderspairDiscountRegistry.ts/ #537), not smart-query-firstLeaving open.
mentioned in commit
56724b1670mentioned in merge request !1075
Merge sanity check (!1075)
Verified !1075 (
feat/538-create-pair-inherit@56724b16) against this issue’s acceptance criteria. Merging without waiting on CI.config.discount_registryafter migrate + All/Batch orUpdateConfigGetDiscountRegistrymatches factory pointer with no follow-up Setscripts/qa/localterra-create-pair-inherit.shplus deploy-time assert before the idempotent per-pair set.GetDiscountRegistrygetPairDiscountRegistryis smart-query-first with LCD raw fallback for 1.13.x.CI on the MR is failed with
ci_quota_exceeded(no job logs). Not treated as a product defect.Residual / not blocking merge
make verify-issue-538is Makefile-only (not in CI). When LocalTerra is down, the inherit rung SKIP still exits 0.Makefile.PHONY/ help — bothverify-issue-538andverify-issue-539must be kept.mentioned in commit
1c6023f294mentioned in issue #549
marked as related to #549
Post-merge follow-up filed as #549 (LocalTerra split-fee redeploy, P6–P8 e2e strengthening, leftover manual #538 QA). !1075 is merged.