docs/ops: Clarify eligible CL8Y for fee tiers vs "CL8Y-cb"; fix soft-launch indexer.env.example dryrun stubs #477
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#477
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
Soft-launch bug report used the name “CL8Y-cb” for the token expected to unlock fee reduction. The fee-discount contract checks a single CW20 (
cl8y_token). That address is mainnet CL8Yterra16wtml2q66g82fdkx66tap0qjkahqwp4lwq3ngtygacg5q0kzycgqvhpax3— the string CL8Y-cb does not appear anywhere in this repository.Separately,
deployments/mainnet-soft-launch/indexer.env.examplestill containsterra1dryrun…placeholder addresses, whilefrontend.env.exampleandaddresses.envhave the real soft-launch set. Operators copying the indexer example risk a misconfigured indexer (wrong factory/router/fee-discount), broken tier sync (#364), and misleading health.Companion UX issue for Pool discoverability / register CTA: #476.
Current codebase
Eligible token (authoritative)
config(columbus-5)cl8y_token=terra16wtml2q66g82fdkx66tap0qjkahqwp4lwq3ngtygacg5q0kzycgqvhpax3deployments/mainnet-soft-launch/addresses.envCL8Y_TOKEN_ADDRESS/FEE_DISCOUNT_ADDRESS=terra1wccz…fneczfrontend.env.exampleVITE_CL8Y_TOKEN_ADDRESS/VITE_FEE_DISCOUNT_ADDRESSCL8Ybalanceoncl8y_tokenat register and on eachGetDiscountThere is no alias, wrap-mapper mapping, or IBC denom named CL8Y-cb in-repo.
Indexer env example drift
deployments/mainnet-soft-launch/indexer.env.examplecurrently has dryrun-looking stubs, e.g.:FACTORY_ADDRESS=terra1dryrun6f343dc4be8dcbf2a821f664ee67d1facbbf6dROUTER_ADDRESS=terra1dryrun0d0371e728495d9808e8495adafc0f9490f3f6FEE_DISCOUNT_ADDRESS=terra1dryrun038e1a34e6e90a7aa0313e1f5fa636769993acProduction probe at investigation time:
https://indexer.dex.cl8y.com/api/v1/health/fee-discount→configured: true,fee_discount_registry_ok: true(live indexer appears correctly configured). The example file is still a footgun for the next cutover/rebuild.Deploy-trace note
deployments/mainnet-soft-launch/deploy-trace.mddeferredqa-verify-env-addressesuntil Coolify appliedfrontend.env.example/indexer.env.example. Frontend bundle ondex.cl8y.comalready embeds the real fee-discount address; keep the verify script as the gate for any future redeploy.Why a new implementation is needed
cl8y_token. Without a published “which token counts” page (explorer link + address), users will keep reporting “holding doesn’t work.”UpdateConfig { cl8y_token }or a multi-token design (out of scope unless product chooses it here).Constraints / guardrails
cl8y_tokenon mainnet is governance/multisig-only; requiresmake qa-verify-deploy-config/ address cross-check (#442) and explicit product sign-off.docs/reference/fee-discount-tiers.md(#198) — link, don’t duplicate tables.Relevant files
deployments/mainnet-soft-launch/indexer.env.exampledeployments/mainnet-soft-launch/frontend.env.exampledeployments/mainnet-soft-launch/addresses.envdeployments/mainnet-soft-launch/deploy-trace.mdscripts/lib/mainnet-soft-launch-defaults.shcl8y_tokendocs/reference/fee-discount-tiers.mddocs/frontend.md/docs/integrators.mddocs/security-model.mdskills/AGENTS_FEE_DISCOUNT_TIERS.mdscripts/qa/verify-env-addresses.sh(#442)UpdateConfigcl8y_tokenRecommended direction
/tiersfootnote via #476): contract address,cl8y_tokenCW20, explorer links, statement that only that CW20 balance is read — community nicknames (e.g. CL8Y-cb) count only if they are that same contract.indexer.env.example: Replace dryrun stubs with the soft-launch addresses fromaddresses.env(factory, router, fee-discount), matchingfrontend.env.examplequality.make qa-verify-env-addresses(and fee-discount health) after any Coolify env change; paste PASS output on the launch/deploy issue.indexer.env.exampleaddresses equaladdresses.env(or fail CI docs job).Acceptance criteria
cl8y_token.indexer.env.exampleuses real soft-launch factory/router/fee-discount addresses (nodryrunstubs).qa-verify-env-addresses+ fee-discount health after env changes.cl8y_tokenis changed: multisig tx + verify scripts PASS; no silent frontend/indexer skew.Test plan (all paths)
make check-fee-discount-tier-docsstill PASS; links resolveindexer.env.examplevalues on a staging indexerGET /api/v1/health/fee-discount→configured: true,fee_discount_registry_ok: truemake qa-verify-env-addresseswith soft-launch frontend+indexer envcl8y_tokenasset marketed as CL8Y-cbget_discount= 0; register for tier 1 fails or cannot meetmin_cl8y_balancecl8y_token+ registeredget_discount> 0; Pool/Swap discounted after #476Test plan (attack / hack / abuse vectors)
cl8y_tokenaddress mattersUpdateConfigto attacker CW20config— cross-check addresses againstaddresses.env/ on-chain factory wiring/tiersaddresses.env/ on-chainconfigquery in verify scriptsVerification criteria
indexer.env.examplematches soft-launch addresses; noterra1dryrunleft in that file.make qa-verify-env-addresses(or documented equivalent) PASS after example/docs update.configon fee-discount equals documentedcl8y_token.mentioned in issue #476
Companion UX/Pool discoverability work: #476.
Product decision needed in a comment: is community “CL8Y-cb” the same CW20 as fee-discount
cl8y_token(terra16wtml…qvhpax3), or a different asset?mentioned in merge request !1013
Yes people call cl8y cl8y-cb because the symbol on terraclassic is cl8y-cb, but its the same token
Reporter follow-up
Reporter confirmed fee discount works after registering on
/tiers— so their holdings were eligible; the gap was registration, not a wrong CW20.Product decision: treat “CL8Y-cb” naming confusion as lower urgency unless we get a confirmed different-contract case. Remaining work here is still valid: publish eligible-token address clearly, and fix
indexer.env.exampledryrun stubs.