Changes usage of the ltv in calculateUserAccountData

This commit is contained in:
The3D 2020-09-25 10:55:58 +02:00
parent 6e7787d23c
commit fb0f533ae9

View File

@ -188,7 +188,7 @@ library GenericLogic {
vars.tokenUnit = 10**vars.decimals;
vars.reserveUnitPrice = IPriceOracleGetter(oracle).getAssetPrice(vars.currentReserveAddress);
if (vars.ltv != 0 && userConfig.isUsingAsCollateral(vars.i)) {
if (vars.liquidationThreshold != 0 && userConfig.isUsingAsCollateral(vars.i)) {
vars.compoundedLiquidityBalance = IERC20(currentReserve.aTokenAddress).balanceOf(user);
uint256 liquidityBalanceETH = vars