Skip to content

Update USD based Comets on Mainnet to the service patch version - #5

Open
MishaShWoof wants to merge 270 commits into
Compound-Foundation:mainfrom
woof-software:woof-software/update-to-new-factory
Open

Update USD based Comets on Mainnet to the service patch version#5
MishaShWoof wants to merge 270 commits into
Compound-Foundation:mainfrom
woof-software:woof-software/update-to-new-factory

Conversation

@MishaShWoof

Copy link
Copy Markdown

No description provided.

VladyslavPerederWoof and others added 30 commits October 24, 2025 23:35
MishaShWoof and others added 29 commits May 21, 2026 15:35
Comment thread contracts/AssetList.sol
Comment on lines +141 to +142
if (assetConfig.borrowCollateralFactor >= assetConfig.liquidateCollateralFactor && assetConfig.borrowCollateralFactor != 0)
revert CometMainInterface.BorrowCFTooLarge();
Comment thread contracts/AssetList.sol
// Be nice and check descaled values are still within range
if (borrowCollateralFactor >= liquidateCollateralFactor) revert CometMainInterface.BorrowCFTooLarge();
// safety check duplicate sanity check on original values to ensure no values skewing after descaling and type conversion
if (borrowCollateralFactor >= liquidateCollateralFactor && borrowCollateralFactor != 0) revert CometMainInterface.BorrowCFTooLarge();
Comment thread contracts/CometExt.sol
*/
function pauseCollateralAssetSupply(uint24 assetIndex, bool paused) override external onlyGovernorOrPauseGuardian isValidAssetIndex(assetIndex) {
if ((collateralsSupplyPauseFlags & (uint24(1) << assetIndex) != 0) == paused) revert CollateralAssetOffsetStatusAlreadySet(collateralsSupplyPauseFlags, assetIndex, paused);
if (!paused && isCollateralDeactivated(assetIndex)) revert CollateralIsDeactivated(assetIndex);
Comment thread contracts/CometExt.sol
*/
function pauseCollateralAssetTransfer(uint24 assetIndex, bool paused) override external onlyGovernorOrPauseGuardian isValidAssetIndex(assetIndex) {
if ((collateralsTransferPauseFlags & (uint24(1) << assetIndex) != 0) == paused) revert CollateralAssetOffsetStatusAlreadySet(collateralsTransferPauseFlags, assetIndex, paused);
if (!paused && isCollateralDeactivated(assetIndex)) revert CollateralIsDeactivated(assetIndex);
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.

5 participants