feat: tax-aware localnet swarm workers (#621) #1133
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!1133
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-621-tax-aware-swarm"
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
tax_listed(wallet 4 whenSWARM_TAX_WORKERS=1) and Python--worker tax(started fromlaunch-swarm.sh) size sells withTaxPreview(fail-closedamount * (1 + sell_bps/10000)if preview is missing), leave pair-directSwap.traderunset, Send official-router ≥2hop toVITE_ROUTER_ADDRESS, and logtax_hybrid_skipinstead of broadcasting a 1:1 hybrid sell.skills/AGENTS_LOCALNET_SWARM_TAX.mdand cross-linked from the swarm, seed, router, and CW20 playbooks. Gate:make verify-issue-621.Closes #621
Test plan
cd packages/localnet-trading-swarm && npm run test:run(50 tests, including preview math, gem exclude, pair-direct no-trader)make test-swarm-liquidity(liquidity +test_swarm_tax.py)make verify-issue-621first pass + retest (docs, static, TS, Python)--dry-runstarts, emitskind: swarm_tax, gem profilesskipped_broadcastVITE_TOKEN_COMMUNITY_TAX_ADDRESSset): live 2–3 min TS soak — logs includetax_listedsell extra-debit, buy split, router trader, provide 1:1, limit 1:1,tax_hybrid_skipmake swarm-launchthenmake swarm-stop—tax-0txs; swap/LP workers skip tax pair; limit worker may place on tax/EMBERSWARM_TAX_WORKERS=0— exclude only; no tax volumemake verify-issue-293— gem hub OE-1 stillpool_only(do not add tax/EMBER)Acceptance (from #621)
trader)tax_hybrid_skip(no 1:1 hybrid sell broadcast)--dry-runstill validates localterra + factory (emitsswarm_tax+tax_pair_visible/skipped_broadcast)npm run test:runandmake test-swarm-liquiditystay greenAGENTS_LOCALNET_TRADING_SWARM.md+ newAGENTS_LOCALNET_SWARM_TAX.mddocument exclude + tax workersmake swarm-local/make swarm-launchstart without Mint errors and without an insufficient-funds storm on the tax pair — needs a #620-pinned LocalTerra (this checkout's.env.localhas noVITE_TOKEN_COMMUNITY_TAX_ADDRESS)Not in this MR
pool_onlychecks (explicitly out of scope until quotes are net-of-tax)mentioned in commit
3ca5f62887mentioned in issue #621
mentioned in issue #622
mentioned in issue #623
mentioned in issue #625
mentioned in issue #624
mentioned in commit
df759514fb