mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Changes usage of the ltv in calculateUserAccountData
This commit is contained in:
parent
6e7787d23c
commit
fb0f533ae9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user