Skip to content

Update the rest of L2 Comets to the service patch version - #4

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

Update the rest of L2 Comets to the service patch version#4
MishaShWoof wants to merge 311 commits into
Compound-Foundation:mainfrom
woof-software:woof-software/update-to-new-factory-on-l2

Conversation

@MishaShWoof

Copy link
Copy Markdown

No description provided.

MishaShWoof and others added 30 commits November 14, 2025 17:05
…p certain scenarios and improve asset handling
…s and optimizing setup for extended asset list support
…nly calls and optimize asset info retrieval in setupExtendedAssetListSupport
MishaShWoof and others added 24 commits June 23, 2026 12:58
…/comet into woof-software/update-to-new-factory-on-l2
…ftware/comet into woof-software/update-to-new-factory-on-l2
…nto woof-software/update-to-new-factory-on-l2
…nto woof-software/update-linea-and-scroll-comet-version
…-software/comet into woof-software/update-linea-and-scroll-comet-version
… github.com:woof-software/comet into woof-software/update-to-new-factory-on-l2
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