fix(#518): sanitize LP ticker so UST1/CL8Y create_pair succeeds #1052
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!1052
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/518-lp-symbol-digits"
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?
Closes #518
Summary
0-9and strip only non-alphanumeric prefix chars (UST1-CUST-LP,CL8Y-CLUN-LP,FOO_BAR→FOOB).[a-zA-Z\-]{3,12}) still rejects those tickers — this requires a contract upgrade.UpdateConfignow acceptspair_code_id/lp_token_code_idso newcreate_pairuses upgraded pair wasm + digit-allowingcw20-mintable.scripts/upgrade-518-lp-symbol.sh(store factory+pair, migrate factory, UpdateConfig). Reuse on-chain mintable withUPGRADE518_LP_CODE_ID=10184.Test plan
make verify-issue-518(unit + classic-revert/unblock integration + upgrade DRY_RUN; suite run twice)UpdateConfig.lp_token_code_id→ mintable unblocksUST1-CUST-LPmake build-optimizedthen./scripts/upgrade-518-lp-symbol.sh(orDRY_RUN=1first)create_pairfor UST1/cUSTC and any CL8Y pairmentioned in issue #518
added 1 commit
b53ebd60- fix(#518): keep digits in LP tickers and add factory code-id upgradeCompare with previous version
changed the description
mentioned in commit
e0b6033ae6mentioned in commit
8bb0e6ab9bmentioned in issue #519
mentioned in issue #521