Deploy TCL8Y 18-decimal CL8Y proxy for LocalTerra fee-discount QA (#383) #912
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!912
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-383-tcl8y-localnet"
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
LocalTerra deploy pointed
VITE_CL8Y_TOKEN_ADDRESSat EMBER (6 decimals). Fee-discount tier minimums use 18-decimalmin_cl8y_balancevalues, so tier registration always failed with "Insufficient CL8Y balance" despite wallets holding large EMBER balances (#383).This MR deploys a dedicated TCL8Y CW20 (18 decimals, symbol
TCL8Y) for fee-discountcl8y_tokenandVITE_CL8Y_TOKEN_ADDRESS. EMBER and other pair tokens remain 6-decimal trading assets only.scripts/e2e-provision-dev-wallet.shmints TCL8Y separately (it is not in factory pairs). Docs/skills cross-link invariant I11 indocs/reference/fee-discount-tiers.md.Acceptance checklist
make reset && make start && make wait-healthy && make deploy-local→ deploy summary showsTCL8Y (CL8Y):address;token_infodecimals=18VITE_CL8Y_TOKEN_ADDRESSpoints to TCL8Y (not EMBER)grep VITE_CL8Y frontend-dapp/.env.local≠ first factory token (EMBER)cl8y_tokenwired to TCL8Ymake verify-issue-383step [3]make verify-issue-383step [1] (supply ≥ 7.5e21)make verify-issue-383step [4]make verify-issue-383step [5]bash scripts/e2e-provision-dev-wallet.sh(mints TCL8Y when belowE2E_DEV_MIN_CL8Y_U128)make check-fee-discount-tier-docs/tiers+ Keplr or Simulated WalletThird-party verification
Optional UI check after
make dev:http://127.0.0.1:5173/tierswith Simulated Wallet or Keplr (test1mnemonic infrontend-dapp/.env.development).Related:
skills/AGENTS_FEE_DISCOUNT_TIERS.md,scripts/qa/README.md§ TCL8Y.Security review — MR !912
Commit reviewed:
e9eb7df2e051ee804a746f597e59969a59751ca4Scope: LocalTerra deploy/QA only —
scripts/deploy-dex-local.sh(TCL8Y 18-dec CW20 proxy),scripts/qa/verify-issue-383.sh,scripts/e2e-provision-dev-wallet.shTCL8Y mint path, docs/skills/Makefile target. No CosmWasm, indexer API, or frontend application code changes.Outcome:
FINDINGS: 0medium+Summary: This MR corrects a LocalTerra decimal mismatch (fee-discount
min_cl8y_balanceassumes 18 decimals; EMBER is 6) by deploying dedicated TCL8Y and wiringcl8y_token/VITE_CL8Y_TOKEN_ADDRESSto it. Review traced attacker-controlled inputs in the diff:verify-issue-383.shTEST_ADDRESSenv (optional override)printfJSON for LCD/terrad queries & mintverify-issue-238.sh; no production pathverify-issue-383.shindexer/.env/.env.localaddresseslcd_smart_query_raw,terrad_tx wasm executedeploy-dex-local.sh; dev-machine trust boundary unchangeddeploy-dex-local.shTEST_ADDRESS(test1)e2e-provision-dev-wallet.shVITE_CL8Y_TOKEN_ADDRESSfrom.env.localmintexecute.env.localsourcing pattern; quoted args; LocalTerra E2E onlyNo injection, authz bypass, secret leakage, SSRF/XSS, or permission-boundary regressions introduced on this diff. TCL8Y is not added to trading pairs; EMBER liquidity semantics unchanged. Mainnet/testnet deploy paths untouched.
Inline threads: none (no medium+ findings).
Label:
block:securitynot applied.mentioned in commit
aaa610e7ef