fix: prove CreatePair inherit and prefer GetDiscountRegistry (#538) #1075
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!1075
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/538-create-pair-inherit"
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
Closes #538. Post-#536 follow-ups: dedicated LocalTerra
create_pairinherit (no follow-upSetDiscountRegistry) and dAppGetDiscountRegistrysmart-query-first.scripts/qa/localterra-create-pair-inherit.shinstantiates throwaway CW20s,create_pair, and asserts pairGetDiscountRegistrymatches factoryconfig.discount_registrywithout executingSetDiscountRegistry.deploy-dex-local.shasserts inherit before the existing idempotent per-pair set (belt-and-suspenders stays).getPairDiscountRegistryprefersGetDiscountRegistry; LCD rawdiscount_registryis fallback for 1.13.x wasm.settings.tsre-exports the same helper.Invariants F538-1–F538-3 / I14 / F5. Playbooks:
skills/AGENTS_FACTORY_DISCOUNT_REGISTRY.md,skills/AGENTS_FRONTEND_PAIR_FEE_DISCOUNT.md. Regression:make verify-issue-538.Test plan
make verify-issue-538(7/7 including retest; live LocalTerra inherit)make verify-issue-537(7/7 regression)python3 scripts/check_fee_discount_tier_docs.pyIssue criteria
config.discount_registryis the fee-discount contract after migrate + All/Batch orUpdateConfigGetDiscountRegistrymatches factory pointer without a follow-up setGetDiscountRegistryinstead of assuming wiredNot in this MR
set_discount_registry(kept as idempotent after inherit assert)Closes #538
Related to #536 #537
mentioned in issue #538
mentioned in issue #539
mentioned in commit
1c6023f294mentioned in commit
9e3f8e16a7mentioned in issue #549