feat(AutoLP): recover token-owned legacy LP policy through its actual manager #1429
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#1429
Loading…
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?
The merged #1398 remediation initializes manager-approved reserve/share economics in AutoLP 1.1.0 and requires explicit same-pair UpdateConfig to establish a missing legacy LP policy. The current launcher uses a human manager, but older sisters may name the community-tax token contract as their manager. A human cannot impersonate that contract, and unchanged token settings intentionally remain a no-op (#1237).
Inventory the actual sister GetConfig.manager and GetLpPolicy first. If token-owned legacy sisters exist, implement and review a narrowly authorized token-mediated policy refresh/rebind path (or a concrete supported replacement/recovery path) before enrolling them in the rollout. Preserve real manager authorization, finite LP/ratio/swap floors, atomic rollback, reserve/share anchor approval, and the no-op settings invariant. Permissionless skim must never refresh policy from mutable spot.
Test both permitted manager execution and rejected foreign/permissionless refresh, unchanged settings, policy shortages and complete failed-reply rollback. Record the implementation and subsequent migration/readback independently. Production rollout/maximum-hook gas remains #1421; source implementation #1398 can close without claiming legacy deployment is complete.
References: docs/qa/issue-1398/README.md AC4, skills/AGENTS_NET_EXECUTION_FLOORS.md NE1398-9, smartcontracts/contracts/community-tax-autolp/src/lp_guard.rs and contract.rs.
PR #1431 is merged through fj at
b5a056fe3b, and its source was checked together with #1432. The combined tree has no merge conflicts. Token 1.4.0's explicit manager proxy preserves same-pair approval, unchanged-settings no-op, net floors and atomic callbacks.Local acceptance: verify-1429 5 PASS/0 FAIL/0 SKIP including the full contract workspace; verify-1398 7 PASS and verify-1237 8 PASS; strict all-target Clippy and formatting pass. Fresh optimized synthetic migration/recovery runs each pass 10 checks with 23 transaction receipts, including exact anchor recovery, positive LP skim and complete failed-swap rollback.
Problems handled: expired OpenBao session recovered with routine certificate login; ordinary fj merge returned HTTP 405 while the hosted status was unmet; the explicitly requested CI override disabled only that status requirement temporarily and restored original protection settings afterward. No fake success statuses were posted. Missing frontend WalletConnect configuration was replaced by a public build-only fixture for local build acceptance; git push used a nonlogging OpenBao askpass helper. The combined build changed token, AutoLP, launcher and pair artifact bytes, so four stale standalone checksums were rebuilt and corrected.
Integrated source/build/chain receipt. This implementation issue closes without a verification hold. Production migration/recovery/readback, maximum-hook/AutoLP gas and release operations remain actual post-merge work in existing #1421/#1384/#1386; no production deployment was performed. The bounded inventory still found no bound sister target, which is not universal proof of absence. Hosted CI was skipped by instruction.