Skip to content

fix(contracts): require BOOTSTRAP_MULTISIG on mainnet deploys - #3007

Merged
alpergundogdu merged 1 commit into
mainfrom
claude/2773-require-bootstrap-multisig-2dd57b
Nov 26, 2026
Merged

alpergundogdu merged 1 commit into
mainfrom
claude/2773-require-bootstrap-multisig-2dd57b

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

Summary

§3 of #2773. Without BOOTSTRAP_MULTISIG, DeployProtocol seats DecdnGovernor as the Timelock's proposer at genesis, when proposalThreshold and quorum are both zero (empty served-bytes window). The first operator with any vote weight could pass a proposal alone.

  • _deployTargets reverts BootstrapMultisigRequired() on Ethereum mainnet (chain id 1) when bootstrapMultisig is unset. It sits in the same ETHEREUM_MAINNET_CHAIN_ID block as the emergency-multisig guard and fires before any target deploys. Testnets (Arbitrum Sepolia, Ethereum Sepolia, anvil) keep the optional default.
  • NatSpec in DeployProtocol.s.sol / BaseProtocolDeploy.s.sol, ADR 009 § Bootstrap-multisig phase and contracts/README.md state the mainnet requirement.
  • Tests: mainnet without the multisig reverts; mainnet with it deploys into the bootstrap phase; a testnet chain id still deploys with the Governor as proposer.
  • .gas-snapshot regenerated (test-contract dispatch shifts only).

The other sections: §1 was fixed by #2833; §2 (burner pauser) no longer applies, since ActivateBuyback.s.sol and the burner are gone from contracts/script/.

Closes #2773

Test plan

  • forge fmt --check && FOUNDRY_PROFILE=ci forge build --sizes --deny warnings && forge test (645 passed)
  • slither . --config-file slither.config.json (exit 0)
  • FOUNDRY_PROFILE=ci forge snapshot --snap .gas-snapshot
  • Rust e2e deploys on anvil (chain id 31337), which this change does not touch, and no Rust code changed, so the anvil-e2e compile check was not run.

🤖 Generated with Claude Code

Without a bootstrap multisig, DeployProtocol seats DecdnGovernor as the
Timelock's proposer at genesis, when proposalThreshold and quorum are
zero. On Ethereum mainnet `_deployTargets` now reverts
`BootstrapMultisigRequired` unless BOOTSTRAP_MULTISIG is set, next to the
existing emergency-multisig guard. Testnets keep it optional.

Closes #2773

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: Solidity

Solidity / code-coverage/forge

main 4c4801f claude/2773-require-... dbfe4df +/-
93% 93% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@github-actions

Copy link
Copy Markdown

Gas snapshot

No gas changes vs base.

@alpergundogdu
alpergundogdu merged commit a20cd31 into main Nov 26, 2026
34 checks passed
@alpergundogdu
alpergundogdu deleted the claude/2773-require-bootstrap-multisig-2dd57b branch November 26, 2026 17:49
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.

deploy scripts: the default deploy goes DAO-live without a bootstrap multisig

1 participant