mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix: protected against disable as collateral + withdraw
This commit is contained in:
parent
8bf4b0acf4
commit
9f110e1d19
|
@ -498,6 +498,7 @@ contract LendingPool is VersionedInitializable, ILendingPool, LendingPoolStorage
|
|||
ltv,
|
||||
currentLiquidationThreshold,
|
||||
healthFactor,
|
||||
|
||||
) = GenericLogic.getUserAccountData(
|
||||
user,
|
||||
_reserves,
|
||||
|
@ -875,7 +876,7 @@ contract LendingPool is VersionedInitializable, ILendingPool, LendingPoolStorage
|
|||
reserveCache.nextLiquidityIndex
|
||||
);
|
||||
|
||||
if (userConfig.isUsingAsCollateral(reserve.id)) {
|
||||
if (reserve.configuration.getLtv() > 0) {
|
||||
if (userConfig.isBorrowingAny()) {
|
||||
ValidationLogic.validateHFAndExposureCap(
|
||||
asset,
|
||||
|
|
Loading…
Reference in New Issue
Block a user