Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
network-states-and-pop-up-cities
Blog

The Future of Constitutions: Immutable Code and Amendable Parameters

A technical analysis of how future network states and pop-up cities will separate immutable constitutional code from governable policy parameters, enabling stable foundations with adaptive governance.

introduction
THE FRAMEWORK

Introduction

Smart contracts expose the fundamental tension between immutable code and the need for governance.

Smart contracts are not laws. Their deterministic execution creates a false equivalence with legal systems, which rely on human interpretation and amendment. Code is absolute, but its parameters are not.

Immutable logic with mutable parameters is the dominant design pattern. Protocols like Uniswap and Compound separate core AMM logic from upgradeable admin controls, enabling fee adjustments and new asset listings without redeployment.

On-chain governance is a bottleneck. DAOs like Arbitrum and Optimism demonstrate that protocol upgrades require weeks of deliberation and voting, creating operational lag versus centralized competitors.

Evidence: The Uniswap v3 Factory contract is immutable, but its governance controls fee switch activation and treasury management, proving the separation of powers in practice.

thesis-statement
THE ARCHITECTURE

Thesis Statement

Future constitutions will be immutable smart contracts with governable parameters, separating foundational logic from adjustable rules.

Immutable core logic provides a trustless foundation. A constitution encoded as a smart contract on a blockchain like Ethereum or Solana becomes a verifiable public good. This eliminates centralized interpretation and ensures the rules execute as written, mirroring the finality of Bitcoin's consensus.

Governable parameters enable evolution. Critical variables—like voting thresholds or treasury allocation—reside in separate, upgradeable modules. This creates a dual-layer governance model, separating sacred principles from operational policy, similar to Uniswap's immutable core paired with its Governor Bravo contract.

This structure prevents hostile forks. An immutable core makes fundamental changes impossible without community consensus for a new chain, raising the coordination cost for attacks. This is the constitutional defense that protects protocols like MakerDAO's DAI stability from unilateral takeover.

Evidence: The collapse of the UST algorithmic stablecoin demonstrated the fatal risk of mutable core logic. In contrast, MakerDAO's Endgame Plan explicitly codifies this thesis, proposing an immutable 'Constitution' and a new governance token, sparking a 40% price surge on announcement.

market-context
THE GOVERNANCE PARADOX

Market Context

Blockchain governance is trapped between the rigidity of immutable code and the chaos of mutable politics.

Immutable code creates ossification. Early blockchains like Bitcoin and Ethereum treat core protocol rules as sacred, requiring contentious hard forks for upgrades. This immutability-as-a-feature ensures predictability but stifles adaptation, creating a market for layer-2 solutions like Arbitrum and Optimism to implement changes the base layer cannot.

On-chain governance creates plutocracy. Protocols like Uniswap and Compound delegate parameter control to token votes, which concentrates power with large holders and whales. This system optimizes for capital efficiency, not user representation, leading to voter apathy and governance attacks.

The future is constitutional separation. The solution is a bifurcated architecture that separates immutable core logic from amendable parameters. This is the model pioneered by Cosmos SDK chains, where a constitution (the code) defines amendment processes for parameters (like inflation rates).

Evidence: The MakerDAO Constitution MIPs demonstrate this shift, formally encoding governance processes into immutable smart contracts while keeping economic parameters like stability fees adjustable through delegated voting.

ON-CHAIN GOVERNANCE MODELS

Constitutional Architecture: A Feature Matrix

A comparison of core architectural approaches for encoding and evolving a protocol's foundational rules, balancing immutability with adaptability.

Constitutional FeatureFully Immutable CodeParameterized ProtocolModular Upgrade Framework

Core Logic Mutability

Parameter Mutability

Upgrade Execution Path

Fork Only

Governance Vote

Governance + Timelock

Typical Upgrade Latency

Months (Community)

< 1 week

1-4 weeks

Implementation Risk per Change

Extreme (New Chain)

Low (Config)

High (Logic)

Canonical State Guarantee

Exemplar Protocols

Bitcoin, Early Ethereum

Compound, Aave

Uniswap, Arbitrum

Primary Governance Asset

Social Consensus

Protocol Token

Protocol Token + Multisig

deep-dive
THE ARCHITECTURE

Deep Dive: The Two-Layer Stack

Separating immutable core logic from adjustable parameters creates resilient, upgradeable protocols.

Immutable core logic is the non-negotiable foundation. This is the protocol's constitution, like Uniswap's constant product formula or Bitcoin's 21M supply cap. It is deployed and cannot be changed, establishing permanent trust guarantees for users and developers.

Amendable parameters are the mutable governance layer. This includes fee switches, treasury allocations, or Uniswap's fee tier structure. Changes require a governance vote, creating a clear, auditable upgrade path without touching the sacred core.

This separation prevents governance attacks. A hostile takeover of a DAO like Arbitrum's cannot rewrite the core rollup logic, only adjust sequencer parameters or treasury funds. The system's fundamental security properties remain intact.

Evidence: Compound's Governor Bravo and Aave's governance frameworks codify this pattern. They enable parameter updates via proposal and vote while keeping the core lending math on-chain and immutable.

protocol-spotlight
THE FUTURE OF CONSTITUTIONS

Protocol Spotlight: Early Builders

Leading protocols are pioneering a new governance model: immutable core logic with flexible, on-chain parameters, separating timeless rules from tactical execution.

01

Uniswap Governance: The Parameter Factory

The Uniswap Protocol's core AMM math is immutable, but its DAO controls a suite of upgradeable parameters via the Governor Bravo contract. This creates a stable foundation for $5B+ in daily volume while allowing tactical adjustments.

  • Fee Switch Toggle: The DAO can activate/delegate protocol fee collection on any pool.
  • Controller Whitelists: Managed lists for oracles and other peripheral services.
  • Gas-Optimized Execution: Proposals use Timelock for security but avoid full redeploys.
$5B+
Daily Volume
>100
Controlled Params
02

Compound's Comet & The Config Module

Compound v3 (Comet) introduced a Configurator Module that separates the immutable lending engine from its risk parameters. This allows for rapid, low-risk market updates without touching core asset safety.

  • Isolated Risk Management: Update collateral factors, borrow caps, and price feeds per market.
  • Governance Minimization: Reduces DAO overhead for routine maintenance.
  • Fork Resistance: The immutable core ensures the protocol's fundamental promise survives governance attacks.
<1 Day
Param Update Time
0 Risk
To Core Logic
03

MakerDAO's Endgame: The Meta-Protocol

Maker's Endgame plan is the ultimate expression of this philosophy, turning the protocol into a meta-framework for immutable SubDAOs. Core smart contracts become a constitutional layer, while specialized DAOs (Spark, Scope) manage execution.

  • Constitutional Vaults: Immutable core contracts define the rules for collateral and DAI.
  • SubDAO Autonomy: Delegated units handle frontends, lending markets, and real-world assets.
  • Aligned Incentives: Ecosystem uses internal tokens (NewGovToken) to coordinate without fracturing.
6+
Planned SubDAOs
$8B+
Constitutional TVL
04

The Lido Staking Router: Upgradeable Modularity

Lido's Staking Router is a modular, upgradeable architecture for validator management. Its immutable core ensures the safety of 9M+ ETH, while new Node Operator sets and withdrawal strategies can be permissionlessly added.

  • Hot-Swappable Modules: Introduce new validator tech (e.g., DVT clusters) via governance vote.
  • Immutable Slashing Logic: The core rules for penalties are fixed and transparent.
  • Scalability Path: Enables the protocol to scale to millions of validators without a hard fork.
9M+ ETH
Immutable Core
Modular
Node Ops
counter-argument
THE FLEXIBILITY IMPERATIVE

Counter-Argument: The Immutability Trap

Absolute immutability creates systemic fragility, making protocols vulnerable to obsolescence and attack.

Immutability is a vulnerability. A protocol with no upgrade path cannot patch critical bugs or adapt to new cryptographic standards, dooming it to eventual failure. This is the lesson of early DAO hacks and the rigid design of Bitcoin's block size.

Parameterization is the escape hatch. Modern protocols like Uniswap V3 and Compound separate immutable core logic from adjustable parameters (fees, interest models). This creates a governance surface for controlled evolution without forking the entire system.

On-chain governance is the execution layer. Frameworks like OpenZeppelin's Governor and Compound's governance module formalize the amendment process. This moves upgrades from chaotic, off-chain social consensus to transparent, on-chain voting and execution.

Evidence: The Ethereum DAO fork proved social consensus overrides code-as-law. Today, Aave's safety module and MakerDAO's parameter polls demonstrate that active, amendable governance is the standard for managing systemic risk.

risk-analysis
CONSTITUTIONAL FRAGILITY

Risk Analysis: What Could Go Wrong?

Immutable code with amendable parameters creates a new attack surface where governance becomes the ultimate vulnerability.

01

The Governance Capture Attack

A hostile actor acquires enough voting power to pass malicious parameter changes, turning the protocol against its users. This is the single point of failure for all on-chain constitutions.\n- Attack Vector: Token-voting models like Compound or Uniswap are vulnerable to whale manipulation or flash-loan attacks.\n- Consequence: Legitimate upgrades are blocked, or treasury funds are drained via 'legitimate' governance proposals.

51%
Attack Threshold
$1B+
Potential Drain
02

The Parameter Incompatibility Bug

A 'safe' individual parameter change interacts unpredictably with the immutable core, creating a critical bug or freezing the system. The complexity of state space makes full simulation impossible.\n- Real-World Parallel: The 2022 Nomad bridge hack was triggered by a minor initialization parameter.\n- Mitigation Failure: Formal verification tools like Certora struggle with the combinatorial explosion of parameter states.

10^N
State Combinations
Irreversible
If in Core Code
03

The Social Consensus Fork

The community splits over a contentious parameter change, leading to a protocol-level hard fork. The immutable codebase is copied, but network effects and liquidity fragment.\n- Precedent: The Ethereum/ETC fork created permanent value and security dilution.\n- Outcome: Users must choose between competing 'constitutions,' undermining the original's legitimacy and creating arbitrage chaos across DeFi (Uniswap, Aave, Maker).

-50%
TVL Dilution
Permanent
Brand Damage
04

The Oracle Manipulation Endgame

Parameters governing critical oracle feeds (e.g., price, randomness) are amended to be more 'gas-efficient' or 'decentralized,' inadvertently creating a new attack vector. The oracle is the reality for the constitution.\n- Attack Path: A change to Chainlink's minimum confirmations or Pyth's staleness tolerance can be exploited for liquidation attacks.\n- Amplified Risk: Immutable smart contracts cannot be patched to reject the now-faulty data.

~5s
Exploit Window
100x
Leverage Possible
05

The Upgradability Illusion

The promise of 'amendable parameters' creates governance fatigue. Low voter turnout for technical proposals cedes control to a small, possibly conflicted, technocratic elite.\n- Data Point: Average voter participation for major DAOs like Uniswap is often <10%.\n- Result: The system becomes de facto controlled by a few core developers, replicating the centralized system it aimed to replace.

<10%
Voter Turnout
5-10
De Facto Governors
06

The Legal Attack Vector

A regulatory body determines that parameter governance constitutes unregistered securities management. The immutable code cannot be changed to comply, forcing a shutdown of all front-ends and off-chain services.\n- Precedent: The SEC's case against LBRY set a precedent for functional utility being deemed a security.\n- Existential Risk: The constitution lives on-chain, inert, while its real-world utility and value are destroyed.

Global
Jurisdictional Risk
$0
Off-Chain Value
future-outlook
THE CONSTITUTION

Future Outlook: The 24-Month Horizon

Protocols will bifurcate into immutable core logic and dynamic governance frameworks, creating a new class of on-chain political systems.

Immutable Core Logic is the new standard. The next generation of protocols, like Uniswap v4, will ship with a hardened, non-upgradable execution kernel. This eliminates governance risk for core invariants, forcing innovation into parameterization layers. The market punishes protocols with mutable admin keys.

Amendable Parameter Frameworks become the primary governance surface. DAOs will manage complex systems like fee curves, oracle whitelists, and slashing conditions through tools like OpenZeppelin Governor. This creates a clear separation between unchangeable law and adjustable policy, reducing attack surfaces.

On-chain Constitutions emerge as a formal standard. Projects will encode their amendment processes—super-majorities, time locks, veto powers—directly into smart contracts, creating verifiable political systems. This mirrors real-world constitutions and provides a predictable framework for long-term participants.

Evidence: The shift is measurable. The total value locked in non-upgradable or timelock-controlled contracts on Ethereum and Solana exceeds $50B. Protocols with clear constitutional separation, like MakerDAO with its Executive Votes and Governance Security Modules, demonstrate higher resilience and user trust.

takeaways
THE FUTURE OF CONSTITUTIONS

Key Takeaways

Blockchain constitutions shift governance from ambiguous social consensus to programmable, on-chain primitives.

01

The Problem: Social Consensus is a Bottleneck

Traditional DAO governance is slow, adversarial, and fails at scale. Voting on every upgrade creates political gridlock and voter apathy.\n- Voter Turnout: Often <5% for major proposals\n- Execution Lag: Days or weeks for simple parameter changes\n- Attack Surface: Social engineering and whale dominance

<5%
Voter Turnoff
Days
Execution Lag
02

The Solution: Immutable Core, Parameterized Shell

Separate the unchangeable protocol logic from adjustable economic parameters. The core contract is frozen and verifiable, while a constitution contract governs a limited set of updatable settings.\n- Uniswap V4 Hooks: Core AMM logic is fixed, but hooks enable custom pool behavior\n- Compound's Timelock: Parameter changes are executable code, not suggestions\n- Auditability: A single immutable bytecode hash to verify forever

1
Immutable Hash
N
Config Params
03

The Mechanism: Constitution as a Smart Contract

The constitution is not a PDF. It's an on-chain contract that defines amendment procedures, thresholds, and execution logic. It turns political debates into parameter adjustments.\n- Automated Execution: Proposals that pass are self-executing, no multisig needed\n- Granular Control: Different rules for treasury, security, vs. fee parameters\n- Fork Resistance: Clear rules reduce ambiguity that leads to chain splits

100%
Execution Certainty
0
Human Ops
04

The Precedent: MakerDAO's Endgame Constitution

MakerDAO is building a hardcoded on-chain constitution to manage its $8B+ ecosystem. It defines immutable processes for launching SubDAOs, allocating budgets, and handling emergencies, moving beyond subjective governance.\n- Scope: SubDAO Launchpad: Constitution automatically spins up new DAOs with pre-set rules\n- Scope: Emergency Shutdown: Triggers are codified, removing political debate in a crisis\n- Key Metric: Aims to reduce governance overhead by >80% for routine operations

$8B+
TVL Managed
-80%
Gov. Overhead
05

The Trade-off: Rigidity vs. Adaptability

Immutable code sacrifices future flexibility. The design challenge is correctly identifying which elements belong in the immutable core vs. the parameterized shell. Get it wrong, and you face irreversible bugs or permanent stagnation.\n- L1 Lessons: Ethereum's core is largely frozen, forcing complex L2 solutions\n- Upgrade Keys: Even parameter changes need robust, multi-sig or futarchy-based governance\n- Risk: A bug in the constitution contract itself is catastrophic

Irreversible
Core Bug Risk
High
Design Criticality
06

The Future: Algorithmic Policy Engines

Next-gen constitutions will use on-chain data and oracles to adjust parameters automatically, minimizing human governance. Think algorithmic interest rates but for protocol security, fees, and rewards.\n- Example: Slashing Rates: Adjust based on network participation metrics\n- Example: Treasury Yield: Auto-deploy to highest verified yield source via EigenLayer\n- Goal: Move from governance-by-vote to governance-by-metric

24/7
Auto-Adjustment
0
Proposals Needed
ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team
Constitutional Code: Immutable Core, Amendable Parameters | ChainScore Blog