Skip to content

feat: dual locker owner (Agent wallet as co-owner)#52

Open
0xPilou wants to merge 14 commits into
devfrom
feat/dual-locker-owner
Open

feat: dual locker owner (Agent wallet as co-owner)#52
0xPilou wants to merge 14 commits into
devfrom
feat/dual-locker-owner

Conversation

@0xPilou

@0xPilou 0xPilou commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds an optional locker owner agent to FluidLocker: the owner can register an agent wallet via setLockerOwnerAgent(agentWallet, signature), verified against the AGENT_WALLET_VERIFIER signer. The onlyLockerOwner modifier now accepts either the locker owner or their registered agent.
  • Adds Agent wallet as co-owner of the reserve.
  • New deployment tooling: AddressRegistry config, abstract SupDeployer, and upgrade scripts for the Locker, Factory, Fontaine, Program Manager, and StakingRewardController implementations (older one-off scripts archived).
  • Tests: dual-owner test coverage in FluidLocker.t.sol, fuzz parameter guards in SFTest.t.sol (excludes address(0)/agent collisions that made testV2withdrawDustETH fail), and fork test updates for the new constructor and SPR contract owner.

Test plan

  • forge test — including the previously failing testV2withdrawDustETH fuzz test, now passing

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant