Compound Governance Proposal 11: COMP Distribution Patch

·

The decentralized finance (DeFi) ecosystem has seen rapid innovation, with governance playing a central role in shaping protocol evolution. Among the most influential DeFi platforms, Compound Finance stands out for pioneering on-chain governance through its COMP token. One pivotal moment in its early development was Governance Proposal 11, a critical adjustment aimed at stabilizing COMP distribution and mitigating unintended consequences from liquidity mining incentives.

This article provides a comprehensive analysis of Proposal 11, detailing the challenges it addressed, the technical implementation, and its long-term implications for market equilibrium and protocol security.


The Problem: Uncontrolled COMP Incentives and Exploitable Mechanics

Launched just two weeks prior to this proposal, the distribution of COMP governance tokens had already triggered unexpected behaviors across the platform. While designed to incentivize participation through liquidity mining, the initial model tied COMP emissions directly to interest paid within each market—meaning higher interest payments led to higher COMP rewards.

This created a self-reinforcing cycle:

👉 Discover how leading DeFi protocols manage token incentives and governance dynamics.

Additionally, a technical vulnerability existed in the refreshCompRates function, which recalculated COMP distribution speeds based on current market conditions. Because smart contracts could call this function, malicious actors could exploit flash loans—unsecured loans worth millions of dollars—to temporarily manipulate market states and artificially boost their COMP earnings before the rates were updated.

These issues threatened both the security and economic integrity of the protocol, necessitating immediate intervention.


The Solution: Shifting from Interest-Based to Borrowing-Based Allocation

Proposal 11 introduced two key changes designed to restore balance and eliminate exploitable loopholes:

1. New COMP Distribution Model

Instead of allocating COMP based on interest paid, the new model uses total borrowing value in each market as the basis for distribution. Specifically:

This shift removes the incentive to drive up interest rates artificially. Users no longer benefit from pushing markets into hyper-utilized states, as rewards are decoupled from interest accrual.

2. Blocking Smart Contract Access to Critical Functions

To prevent flash loan attacks on the rate-refresh mechanism, the refreshCompSpeeds function was modified so that only externally owned accounts (EOAs)—not smart contracts—can trigger it. This is enforced by requiring:

require(msg.sender == tx.origin);

If a contract calls the function, msg.sender differs from tx.origin, and the transaction reverts. However, internal administrative functions (e.g., adding new markets via timelock) still need access, so an internal version—refreshCompSpeedsInternal—was created for governance-controlled operations.


Implementation Details: Minimal Changes, Maximum Impact

The code modifications were intentionally minimal to enable rapid deployment without requiring external audit—a crucial factor given the urgency.

Key Code Adjustments:

This approach ensures that:

The simplicity of these changes allowed for swift activation while minimizing potential attack surfaces.


Governance Execution and Deployment

As with all Compound proposals, this upgrade followed a formal governance process:

  1. The new Comptroller contract was deployed at address 0xaf601cbff871d0be62d18f79c31e387c76fa0374.
  2. It was first set as the pending Comptroller via an on-chain vote.
  3. After confirmation, it became the active Comptroller, activating the revised logic.

This method ensures full transparency and community oversight, reinforcing trust in decentralized decision-making.


Expected Outcomes: Market Stabilization and Safer Utilization

With COMP rewards now tied to borrowing volume rather than interest costs, several shifts were anticipated:

While perfect rate parity isn’t expected—due to varying asset volatility and reserve factors—the overall effect is a more resilient and predictable protocol.

👉 Explore how real-time data influences DeFi lending and borrowing strategies.


Why This Matters: A Template for Responsive Governance

Proposal 11 exemplifies how agile on-chain governance can respond to emergent threats. By making small, targeted changes instead of overhauling the system, Compound demonstrated:

It also highlighted the importance of designing incentive models that align with long-term protocol health—not just short-term user growth.


Frequently Asked Questions (FAQ)

Q: Why was changing from interest-based to borrow-based distribution important?
A: Interest-based distribution encouraged users to maximize interest payments, leading to artificially inflated rates and risky concentration in certain markets. Switching to borrow-based allocation removes this perverse incentive and promotes healthier utilization.

Q: How does blocking smart contracts improve security?
A: Flash loan attackers could manipulate market conditions and profit from outdated COMP speed calculations. By restricting refreshCompSpeeds to EOAs only, such exploits become impossible.

Q: Does this change affect how COMP is split between lenders and borrowers?
A: No. The 50/50 distribution between suppliers and borrowers remains unchanged.

Q: Was an audit performed before deploying this update?
A: Due to the minimal nature of the changes and urgent need for deployment, no formal external audit was conducted. The simplicity of the logic allowed for confident execution without one.

Q: Will all market interest rates eventually equalize?
A: Not exactly. While rates should converge due to arbitrage-like behavior, differences in asset risk, liquidity, and reserve factors will maintain some variation.

Q: Can governance still update COMP speeds if needed?
A: Yes. Administrative functions routed through the Timelock contract use refreshCompSpeedsInternal, allowing ongoing management while preserving security.


Final Thoughts: A Step Toward Sustainable Incentives

Compound Governance Proposal 11 was not a grand redesign but a necessary course correction. It addressed immediate risks posed by runaway liquidity mining while preserving core functionality. By focusing on borrow value over interest accrual, and securing critical functions against manipulation, the protocol took a significant step toward sustainability.

As DeFi continues to evolve, such pragmatic, data-driven governance actions will become increasingly vital—not just for Compound, but for the entire decentralized ecosystem.

👉 Stay ahead in DeFi with real-time insights and secure trading tools.

Keywords: Compound Governance Proposal 11, COMP distribution, DeFi liquidity mining, borrow-based incentives, flash loan protection, interest rate balancing, decentralized finance security