From e328cf048214d8eaaaa7e0f46fde62c102c32cc5 Mon Sep 17 00:00:00 2001 From: The3D Date: Fri, 25 Sep 2020 10:57:51 +0200 Subject: [PATCH] Formatting, removed console import --- contracts/libraries/logic/GenericLogic.sol | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/contracts/libraries/logic/GenericLogic.sol b/contracts/libraries/logic/GenericLogic.sol index c63a4b16..d1a7d6ce 100644 --- a/contracts/libraries/logic/GenericLogic.sol +++ b/contracts/libraries/logic/GenericLogic.sol @@ -10,8 +10,6 @@ import {UserConfiguration} from '../configuration/UserConfiguration.sol'; import {WadRayMath} from '../math/WadRayMath.sol'; import {PercentageMath} from '../math/PercentageMath.sol'; import {IPriceOracleGetter} from '../../interfaces/IPriceOracleGetter.sol'; -import "@nomiclabs/buidler/console.sol"; - /** * @title GenericLogic library @@ -63,10 +61,7 @@ library GenericLogic { address[] calldata reserves, address oracle ) external view returns (bool) { - if ( - !userConfig.isBorrowingAny() || - !userConfig.isUsingAsCollateral(reservesData[asset].id) - ) { + if (!userConfig.isBorrowingAny() || !userConfig.isUsingAsCollateral(reservesData[asset].id)) { return true; } @@ -255,7 +250,7 @@ library GenericLogic { return (collateralBalanceETH.percentMul(liquidationThreshold)).wadDiv(borrowBalanceETH); } - /** + /** * @dev calculates the equivalent amount in ETH that an user can borrow, depending on the available collateral and the * average Loan To Value. * @param collateralBalanceETH the total collateral balance