Conversation
Addition to the Pause Guardian storage slots in V2. Appended as V6 to avoid introducing storage slot conflicts.
Added new error COLLATERAL_PAUSED for when a collateral is paused and someone tries to borrow with paused collateral.
Added _setCollateralPaused(), changed getHypotheticalAccountLiquidityInternal() to reflect new error.
|
Just realized the issue required the use of If IMO this will only waste gas because why |
Allows users to borrow even if they're in a market where the collateral is paused if they have 0 cTokenBalance (In market, but not supplied. Happens when someone borrows but don't supply the same token)
|
LGTM. The purpose of the issue was to call |
Summary:
Comptroller.sol: added _setCollateralPaused() and changed getHypotheticalAccountLiquidityInternal() to reflect new error
ErrorReporter.sol: added new COLLATERAL_PAUSED error for the comptroller
ComptrollerStorage.sol: added V6 to store collateralGuardianPaused state