Skip to content

Contracts: Fix factory/treasury integration and state synchronization - #1501

Merged
Ehonrie merged 2 commits into
Netwalls:mainfrom
ZeeTech374:batch-168-features
Oct 21, 2026
Merged

Ehonrie merged 2 commits into
Netwalls:mainfrom
ZeeTech374:batch-168-features

Conversation

@ZeeTech374

Copy link
Copy Markdown
Contributor

Closes #1351
Closes #1352
Closes #1353
Closes #1354

ZeeTech374 and others added 2 commits October 20, 2026 11:44
- Netwalls#1351: Expose MarketFactory::get_market_address(market_id) -> Option<Address> for Treasury market authorization, and update all Treasury deposits/payouts to handle Option return
- Netwalls#1352: Remove factory's call to non-existent Treasury::register_market (C-93 supersedes with factory registry)
- Netwalls#1353: Keep ProtocolConfig.admin in sync when accept_admin rotates the ADMIN key (single source of truth for authorized admin functions)
- Netwalls#1354: Unify pause state: pause_factory/unpause_factory now update both PAUSED key and ProtocolConfig.paused so emergency_drain is reachable after pause

Closes Netwalls#1351, Netwalls#1352, Netwalls#1353, Netwalls#1354
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants