fix(community-tax): AutoLP factory-listed pair + skim floor (#610) #1130

Merged
PlasticDigits merged 2 commits from issue/610-autolp-factory-pair-skim-floor into main 2026-08-24 02:44:30 +00:00
PlasticDigits commented 2026-08-24 00:53:21 +00:00 (Migrated from gitlab.com)

Summary

  • AutoLP pair on instantiate / UpdateConfig must be a CL8Y factory-listed pool that includes this tax token. Factory is an immutable launcher pin (M-3).
  • Permissionless SkimToLp always attaches max_spread (default 100 bps, hard cap 200 bps) and optional skim_min_return. Floor violation reverts and tax stays on AutoLP (M-2).
  • Inverted poc_autolp_manager_can_skim_to_fake_pair. T592-10 / M610-1–M610-8 documented in skills/AGENTS_COMMUNITY_TAX_AUTOLP.md. Manage Token copy names this token's factory pair.

Closes #610.

Test plan

  • make verify-issue-610 (crates + inverted PoC + frontend copy + docs, twice)
  • cd smartcontracts && cargo test -p cl8y-community-tax-autolp
  • Fake / wrong-token pair UpdateConfig reverts; listed [tax_token, quote] succeeds
  • Omitted UpdateConfig fields still merge
  • Permissionless SkimToLp still allowed; hook is never both-None
  • After CMM migrate of AutoLP 11613: LocalTerra skim against a real CL8Y pair; reject a second CW20 as pair
## Summary - AutoLP `pair` on instantiate / `UpdateConfig` must be a CL8Y factory-listed pool that includes this tax token. Factory is an immutable launcher pin (M-3). - Permissionless `SkimToLp` always attaches `max_spread` (default 100 bps, hard cap 200 bps) and optional `skim_min_return`. Floor violation reverts and tax stays on AutoLP (M-2). - Inverted `poc_autolp_manager_can_skim_to_fake_pair`. T592-10 / **M610-1–M610-8** documented in [`skills/AGENTS_COMMUNITY_TAX_AUTOLP.md`](skills/AGENTS_COMMUNITY_TAX_AUTOLP.md). Manage Token copy names this token's factory pair. Closes #610. ## Test plan - [ ] `make verify-issue-610` (crates + inverted PoC + frontend copy + docs, twice) - [ ] `cd smartcontracts && cargo test -p cl8y-community-tax-autolp` - [ ] Fake / wrong-token pair `UpdateConfig` reverts; listed `[tax_token, quote]` succeeds - [ ] Omitted `UpdateConfig` fields still merge - [ ] Permissionless `SkimToLp` still allowed; hook is never both-`None` - [ ] After CMM migrate of AutoLP **11613**: LocalTerra skim against a real CL8Y pair; reject a second CW20 as `pair`
PlasticDigits commented 2026-08-24 00:53:30 +00:00 (Migrated from gitlab.com)

mentioned in issue #610

mentioned in issue #610
PlasticDigits commented 2026-08-24 02:44:23 +00:00 (Migrated from gitlab.com)

added 5 commits

  • 84b3c148...4c120e83 - 4 commits from branch main
  • aa8991cf - Merge origin/main into issue/610-autolp-factory-pair-skim-floor

Compare with previous version

added 5 commits <ul><li>84b3c148...4c120e83 - 4 commits from branch <code>main</code></li><li>aa8991cf - Merge origin/main into issue/610-autolp-factory-pair-skim-floor</li></ul> [Compare with previous version](/PlasticDigits/cl8y-dex-terraclassic/-/merge_requests/412/diffs?diff_id=1978579256&start_sha=84b3c148e072c9e61397215430435bcbede421f3)
PlasticDigits (Migrated from gitlab.com) merged commit 77d57d20ea into main 2026-08-24 02:44:30 +00:00
PlasticDigits commented 2026-08-24 02:44:31 +00:00 (Migrated from gitlab.com)

mentioned in commit 77d57d20ea

mentioned in commit 77d57d20eaada15f08db819ad6715c0df6e416de
PlasticDigits commented 2026-08-24 03:01:16 +00:00 (Migrated from gitlab.com)

mentioned in issue #616

mentioned in issue #616
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic!1130
No description provided.