mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Formatting, removed console import
This commit is contained in:
parent
687b13f019
commit
e328cf0482
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user