ops: post-merge !409–!413 option-2 wasm, wrap/window fees, AutoLP, tax ranking #616
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#616
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?
Parent
Merged on
main(no CI wait):trader)notify_deposit+fee)route/solverankingFollow-up docs grep:
992b980a(PFee-1–PFee-12kept soverify-issue-586/614still match).Do not reopen #607 / #610 / #613 / #615 unless a merged invariant is wrong. #614 stays open until ust1-window emits
fee_amount.Related store/rotate already on #611. #612 disclose QA is stale after !1127 (option 1 reversed).
Why this is needed
In-repo crate + dApp + indexer match option 2 / wrap ingest / window pin / AutoLP floor / net ranking. Live columbus-5 still runs pre-option-2 11611, wrap fees stay
event_count: 0until Coolify indexer deploy, window fees stay dropped until ust1-window#33, and ranking will not skip middle TAX hops untilCOMMUNITY_TAX_OPTION2_*after migrate.Acceptance
main(option-2 classify). Keep 11611 listed until rotate. Same store as #611 is fine if the tip includes !1127.UST1_WINDOW_ADDRESS=terra1zxwpzpzpleatqn39r00grau4yt29sld8pw78s7ktvjafnj5nsaxq0h3rh2(#614). ViteVITE_UST1_WINDOW_ADDRESSis not enough.COMMUNITY_TAX_OPTION2_CODE_IDS(e.g.11611) and/orCOMMUNITY_TAX_OPTION2_DATA_HASHES. Until then middle TAX hops stay Honest on ranking (R615-5).GET /api/v1/protocol/fees?window=24hwrapevent_count ≥ 1; unwrap increments; InstantWithdrawtax_amountis not stored.fee_amount+ token identity: mint/redeem incrementprotocol_fee_events;/protocolSource shows UST1 mint / UST1 redeem.Sell tax extra/Buy tax applies(notRoute skips buy/sell tax). Create/Manage:Buy/sell tax applies on every listed-pair swap.make verify-issue-607·610·613·614·615stay green onmain.Do not
amount × bps.marked as related to #607
marked as related to #610
marked as related to #611
marked as related to #612
marked as related to #613
marked as related to #614
marked as related to #615
mentioned in issue #607
mentioned in issue #613
mentioned in issue #614
mentioned in issue #610
mentioned in issue #615
mentioned in issue #611
mentioned in issue #612
Opened after merging !1127–!1131. Integrated-tip verifies (no CI wait):
verify-issue-6078/8verify-issue-6108/8verify-issue-6136/6 (after992b980aPFee-12 grep fix)verify-issue-6146/6verify-issue-6157/7 (includes #607)Not run: Coolify deploy, columbus-5 wrap/window live ingest, CMM migrate, LocalTerra skim / option-2 execute, Playwright.
Window wasm
fee_amountunblocked (ust1-window#33)Columbus-5 window migrated in place: 11566 → 11618 on
terra1zxwpzpzpleatqn39r00grau4yt29sld8pw78s7ktvjafnj5nsaxq0h3rh2.F4D79240…C60A/ migrate009BD391…747D(code=0)fee_bps=100, adminterra1xsecn…)The #614 “until ust1-window emits
fee_amount” blocker is done. Remaining window line on this checklist: Coolify indexer rebuild withUST1_WINDOW_ADDRESS=terra1zxwp…+ live mint/redeem incrementingprotocol_fee_events//protocolUST1 mint / UST1 redeem. Wrap ingest and option-2 11611 items unchanged.Columbus-5 token/AutoLP store (shared with #611)
Option-2 tip stored as token 11619 / AutoLP 11621. Launcher migrated to 11620. No live 11611/11613 instances. Factory still lists 11611 only — do not set
COMMUNITY_TAX_OPTION2_CODE_IDS=11619until instances actually run those bytes (R615-5).Txs / hashes: see #611 note +
deployments/mainnet-soft-launch/deploy-trace.mdonmaind3dba8bf.Still open
#589GO + whitelist 11619; launchertoken_code_idrotate (else new creates stay Honest 11611).UST1_WINDOW_ADDRESS=terra1zxwpz…h3rh2(Vite pin is not enough).fee_amount(ust1-window#33) — other repo.Sell tax extraon pair-direct and hops).Not closing.
LCD verified 2026-08-24:
AddWhitelistedCodeId 11619txB659D914CEAA045F05B5371F90669B79E34E7AE414537C6B4A8A58286BC640CFheight 30085794, code 0, signer DEX 2-of-3terra1zlmv2…hep7GetWhitelistedCodeIds=[6036, 8266, 10184, 11611, 11619]IsCodeIdWhitelisted 11619= true63CB21D1…BAFA20. Token/AutoLP instances still 0 — no CMM migrate / no Refreshterra126pr5…ahzwzeis 11620;GetConfigstilltoken_code_id=11611/autolp_code_id=1161311620 has no
UpdateConfig. Crate change in this follow-up adds wasm-adminUpdateConfig(token id must be factory-listed). Aftermake build-optimizedon pop-os:Do not whitelist the new launcher store. Keep 11611 listed. Leave
COMMUNITY_TAX_OPTION2_CODE_IDSunset until instances run 11619. Leave this issue open until that rotate lands.11622 migrate + UpdateConfig — LCD-confirmed 2026-08-24
On-chain leftover from this rotate is done:
8E56AE0F…8E90· storeFA30A5B1…2355terra126pr5…11620 → 11622F2166AB0…AAB2height 30086055 (DEX 2-of-3)UpdateConfigtoken 11619 / autolp 11621DAC86F27…6ED3height 30086058GetConfigtoken_code_id=11619autolp_code_id=11621[6036, 8266, 10184, 11611, 11619]— 11622 / 11621 / 11620 not listedDocs:
93b3b729.Coolify leftover (do not close yet): catalog is single-id. Live indexer still
code_id=11611. Flip then rebuild/restart:Do not whitelist 11622 / 11621 / 11620 / 11612 / 8654.
Do not
RemoveWhitelistedCodeId 11611until Refresh.Coolify catalog 11619 verified — #616 stays open
Done this redeploy:
VITE_COMMUNITY_TAX_CODE_ID=11619+ launcherterra126pr5…GET /api/v1/community-tokens{ configured: true, code_id: 11619 }token_code_id=11619/autolp_code_id=11621Not done:
UST1_WINDOW_ADDRESSis unset — liveGET /api/v1/protocol/feeshasust1_window_configured: false(ViteVITE_UST1_WINDOW_ADDRESSis not enough). SetUST1_WINDOW_ADDRESS=terra1zxwpzpzpleatqn39r00grau4yt29sld8pw78s7ktvjafnj5nsaxq0h3rh2on the indexer service and restart.ust1_mint/ust1_redeemincrement (#614 / ust1-window#33). Window wasm is already 11618 on the same address.COMMUNITY_TAX_OPTION2_CODE_IDS=11619(new creates are 11619; 0 instances yet).event_countstill 0 on 24h/7d/30d (mapper pin istrue; either no wrap txs ingested or none in window).mentioned in commit
ad6ec7b63cVerify harness landed on
main(ad6ec7b6)Added
make verify-issue-616+skills/AGENTS_POST_MERGE_OPS_616.md(Q11 / M616-1–M616-8). Children 607 / 610 / 613 / 614 / 615 stay green. Playwrighte2e/option2-copy-616.spec.ts(e2e-smoke) covers Create/Swap/Trade option-2 copy. Coolify example now uncomments indexerUST1_WINDOW_ADDRESS(Vite is not enough).Do not close yet. Live wrap/window events are still 0. No 11619 instances, so
COMMUNITY_TAX_OPTION2_CODE_IDSmust stay unset for 11611 (R615-5).Checklist
GetConfigtoken 11619 / autolp 11621. Sisters 11612/11613/11614/11620/11621/11622 / ALPHA 8654 not listed.VITE_COMMUNITY_TAX_CODE_ID=11619+ launcherterra126pr5…. Bundle hasSell tax extra/Buy tax applies/Buy/sell tax applies on every listed-pair swap.— noRoute skips buy/sell tax.{ configured: true, code_id: 11619 }.UST1_WINDOW_ADDRESSpinned — liveGET /api/v1/protocol/feeshasust1_window_configured: true(was unset in the 04:57 note).event_count ≥ 1on 24h/7d/30d — still 0 (wrap_mapper_configured: trueis not ingest). Need a captured uusd and/or uluna wrap after the rebuild.ust1_mint/ust1_redeemand/protocolSource UST1 mint / UST1 redeem — still 0. Wasm 11618 + pin are done; need one deposit + withdraw.COMMUNITY_TAX_OPTION2_CODE_IDS=11619only after a live 11619 instance. Do not add 11611 until those instances migrate.make verify-issue-607·610·613·614·615green onmain.usesRoutertrue/false).Operator leftovers
Do not infer wrap/window fees from
amount × bps. Do not whitelist launcher / AutoLP / 8654. Do notRemoveWhitelistedCodeId 11611until Refresh.Regression:
make verify-issue-616. Fail leftovers:VERIFY616_REQUIRE_LIVE_LEFTOVERS=1 make verify-issue-616.mentioned in issue #620
mentioned in issue #603