@@ -575,7 +575,13 @@ contract Comptroller is ComptrollerBase, ComptrollerInterface, ComptrollerErrorR
575575 require (borrowBalance >= repayAmount, "!borrow>repay " );
576576 } else {
577577 /* The borrower must have shortfall in order to be liquidateable */
578- (Error err , , , uint256 shortfall ) = getHypotheticalAccountLiquidityInternal (borrower, ICErc20 (address (0 )), 0 , 0 , 0 );
578+ (Error err , , , uint256 shortfall ) = getHypotheticalAccountLiquidityInternal (
579+ borrower,
580+ ICErc20 (address (0 )),
581+ 0 ,
582+ 0 ,
583+ 0
584+ );
579585 if (err != Error.NO_ERROR) {
580586 return uint256 (err);
581587 }
@@ -755,7 +761,7 @@ contract Comptroller is ComptrollerBase, ComptrollerInterface, ComptrollerErrorR
755761 uint256 redeemTokens ,
756762 uint256 borrowAmount ,
757763 uint256 repayAmount
758- )
764+ )
759765 public
760766 view
761767 returns (
@@ -770,7 +776,13 @@ contract Comptroller is ComptrollerBase, ComptrollerInterface, ComptrollerErrorR
770776 uint256 collateralValue ,
771777 uint256 liquidity ,
772778 uint256 shortfall
773- ) = getHypotheticalAccountLiquidityInternal (account, ICErc20 (cTokenModify), redeemTokens, borrowAmount, repayAmount);
779+ ) = getHypotheticalAccountLiquidityInternal (
780+ account,
781+ ICErc20 (cTokenModify),
782+ redeemTokens,
783+ borrowAmount,
784+ repayAmount
785+ );
774786 return (uint256 (err), collateralValue, liquidity, shortfall);
775787 }
776788
@@ -791,7 +803,7 @@ contract Comptroller is ComptrollerBase, ComptrollerInterface, ComptrollerErrorR
791803 uint256 redeemTokens ,
792804 uint256 borrowAmount ,
793805 uint256 repayAmount
794- )
806+ )
795807 internal
796808 view
797809 returns (
@@ -847,7 +859,8 @@ contract Comptroller is ComptrollerBase, ComptrollerInterface, ComptrollerErrorR
847859
848860 // accumulate the collateral value to sumCollateral
849861 uint256 assetCollateralValue = mul_ScalarTruncate (vars.tokensToDenom, vars.cTokenBalance);
850- if (assetCollateralValue > vars.assetAsCollateralValueCap) assetCollateralValue = vars.assetAsCollateralValueCap;
862+ if (assetCollateralValue > vars.assetAsCollateralValueCap)
863+ assetCollateralValue = vars.assetAsCollateralValueCap;
851864 vars.sumCollateral += assetCollateralValue;
852865 }
853866
0 commit comments