Skip to content
Crypto.world

The Ledger

Compound’s Woof team prepares Comet security patch for Glamsterdam

A planned Comet V3 patch would address a potential interest-index overflow and change how asset lists are upgraded. The Woof team is completing a security review before preparing proposals for the rollout.

Compound’s Woof team prepares Comet security patch for Glamsterdam

A planned Compound Comet V3 patch would address a potential interest-index overflow and change how asset lists are upgraded ahead of Ethereum’s Glamsterdam hardfork. The Woof team outlined the work in a Dec. 4 post on the Compound Community Forum, saying it was completing a security review before preparing the release.

Service Patch #2, designated v1.2.2, is intended to address security issues in Comet’s code and prepare for Glamsterdam. It has not yet been released to Comet markets.

Overflow risk in deprecated markets

The team discovered a potential issue in the deprecated Linea cUSDCv3 market during security testing, according to the post. As lenders withdrew positions while debts remained outstanding, reserves increasingly covered borrow positions and utilization rose above 100%.

Woof said sufficiently high utilization could put Comet interest indexes at risk of overflow, potentially halting user-facing operations and making funds recovery require complex code updates. The team described it as a legacy issue that could potentially affect all markets.

The team worked with Certora, ChainSecurity and Gauntlet to assess live and deprecated markets on mainnet and L2s. The providers updated the market deprecation strategy, and proposals were launched to withdraw reserves from deprecated markets; the post says no markets currently face immediate risk and security providers continue monitoring them.

The patch would add a configurable maximum supported utilization, initially set to 200% for all markets, and safeguards intended to stop operations from pushing utilization above that limit. Critical operations including interest accrual, debt repayment, collateral supply and liquidations would not be affected, according to the team.

Asset-list changes

The planned release would also alter how Comet’s AssetList contracts are upgraded. Woof said its review at the end of October found that Glamsterdam would raise the cumulative gas cost of deploying a 24 kB contract from about 4.9M to about 37.8M gas.

Currently, an AssetList is redeployed each time its market is updated, including for a simple supply-cap change. The proposed design would give each AssetList an upgradeable proxy deployed once, with Compound Timelock retaining control of the process.

Under the planned design, adding an asset or changing a collateral price feed would require an AssetList upgrade, while changes to collateral factors or supply caps would update parameters directly in storage. Changes to Comet parameters, such as interest-rate parameters, would still require a Comet upgrade but not an AssetList redeployment.

Additional fixes and rollout

The release would also allow fractional collateral supply caps and add stricter checks on collateral factors. Another change would accrue interest before a base-asset supply changes the market balance; Woof said the existing order could calculate future interest prematurely and exhaust reserves, particularly in fresh markets.

The patch would also address a bug-bounty report involving zero-amount base-asset transfers or supplies that may decrease a user’s position by 1 wei at a time. For markets with the first service patch, it would cover a missed case in the lender withdrawal pause logic.

After the security iteration, the team plans to add audited bytecode to the Bytecode Repository and deploy factories, asset-list proxies and implementations for mainnet. It also plans a separate proposal to update the mainnet Configurator and set asset lists and factories.

The team estimates that technical preparation will take about 1.5 weeks, without Comet upgrades during that period. It then plans proposals to upgrade mainnet Comets, followed by the same steps for Institutional Comets and L2 Comets, excluding deprecated markets.

Sources

  1. Original source Compound Community Forum comp.xyz

Related stories

Explore

More articles