fix: gate CL8Y fee-tier chrome on pair discount_registry (#537) #1066
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!1066
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/537-pair-fee-tier-gate"
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
useLimitOrderMakerFeeRatesno longer advertise a walletget_discountunless the pairDISCOUNT_REGISTRYis set and matchesVITE_FEE_DISCOUNT_ADDRESS(invariant I14).fee_bps/ full maker place fee with no strikethrough, and hide the pair-scoped Hold-CL8Y CTA. Hybrid quotes withtraderwere already execute-aligned; this is chrome-only.discount_registry(ZGlzY291bnRfcmVnaXN0cnk=) with aget_discount_registryfallback for future wasm. Probe failure is fail-closed (full fee in the UI).Parent ops wiring remains #535 (out of scope here).
Test plan
make verify-issue-537(unit + docs/skills grep; retest in-script)pairDiscountRegistryhelpers + LCD probe,useLimitOrderMakerFeeRateswired/unwired/mismatch, Pool + Swap fee chromeSwapPage.test.tsx,PoolPage.test.tsx,TradePage.test.tsx(103 tests)python3 scripts/check_fee_discount_tier_docs.py1.80%, no strikethrough; Place limit maker fee is 90 bps not 0/tradepre-submit maker place bps matches on-chainmaker_fee_amountfor unwired vs wiredIssue criteria
useLimitOrderMakerFeeRateson pair registry being set (and matching the configured contract)fee_bps/ full maker place fee; do not strikethrough a phantom discountdocs/,skills/AGENTS_FRONTEND_PAIR_FEE_DISCOUNT.md,AGENTS.md)Not in this MR
SetDiscountRegistry*wiring (#535) — closed ops workGetDiscountRegistryQueryMsg / CreatePair inherit (live 1.13.0 wasm still has no query variant; raw key is the probe)Follow-up (only if needed)
GetDiscountRegistrywith the CreatePair inherit issue so the dApp can drop the raw-state path on LCDs that 403/raw/.added 3 commits
main395416d0- merge: resolve #537 docs after factory discount registry on mainCompare with previous version
mentioned in commit
c4c2b78dd2mentioned in issue #537
mentioned in issue #533
mentioned in issue #538