Skip to content

Test/configurator scenario#409

Open
vlad-woof-software wants to merge 228 commits intomainfrom
test/configurator-scenario
Open

Test/configurator scenario#409
vlad-woof-software wants to merge 228 commits intomainfrom
test/configurator-scenario

Conversation

@vlad-woof-software
Copy link
Copy Markdown
Collaborator

No description provided.

MishaShWoof and others added 30 commits July 25, 2025 19:04
VladyslavPerederWoof and others added 24 commits April 10, 2026 16:33
…nt-arg

`supplyInternal` redundant argument removal
Lenders' illiquidity & Supply index grows in empty market
Utilization peaking impact & borrow indexes grow in empty market & Supply tests
Comment thread contracts/AssetList.sol
Comment on lines +145 to +151
if (assetConfig.borrowCollateralFactor != 0 && assetConfig.liquidateCollateralFactor == 0) {
revert CometMainInterface.BorrowCFTooLarge();
} else if (assetConfig.borrowCollateralFactor != 0 && assetConfig.liquidateCollateralFactor != 0) {
// Ensure collateral factors are within range
if (assetConfig.borrowCollateralFactor > assetConfig.liquidateCollateralFactor) revert CometMainInterface.BorrowCFTooLarge();
if (assetConfig.liquidateCollateralFactor > MAX_COLLATERAL_FACTOR) revert CometMainInterface.LiquidateCFTooLarge();
}
Comment thread contracts/AssetList.sol
Comment on lines +147 to +151
} else if (assetConfig.borrowCollateralFactor != 0 && assetConfig.liquidateCollateralFactor != 0) {
// Ensure collateral factors are within range
if (assetConfig.borrowCollateralFactor > assetConfig.liquidateCollateralFactor) revert CometMainInterface.BorrowCFTooLarge();
if (assetConfig.liquidateCollateralFactor > MAX_COLLATERAL_FACTOR) revert CometMainInterface.LiquidateCFTooLarge();
}
Comment thread contracts/AssetList.sol
Comment on lines +160 to +165
if (borrowCollateralFactor != 0 && liquidateCollateralFactor == 0) {
revert CometMainInterface.BorrowCFTooLarge();
} else if (borrowCollateralFactor != 0 && liquidateCollateralFactor != 0) {
// Be nice and check descaled values are still within range
if (borrowCollateralFactor >= liquidateCollateralFactor) revert CometMainInterface.BorrowCFTooLarge();
}
Comment thread contracts/AssetList.sol
Comment on lines +162 to +165
} else if (borrowCollateralFactor != 0 && liquidateCollateralFactor != 0) {
// Be nice and check descaled values are still within range
if (borrowCollateralFactor >= liquidateCollateralFactor) 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.

6 participants