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,
|
ltv,
|
||||||
currentLiquidationThreshold,
|
currentLiquidationThreshold,
|
||||||
healthFactor,
|
healthFactor,
|
||||||
|
|
||||||
) = GenericLogic.getUserAccountData(
|
) = GenericLogic.getUserAccountData(
|
||||||
user,
|
user,
|
||||||
_reserves,
|
_reserves,
|
||||||
|
@ -875,7 +876,7 @@ contract LendingPool is VersionedInitializable, ILendingPool, LendingPoolStorage
|
||||||
reserveCache.nextLiquidityIndex
|
reserveCache.nextLiquidityIndex
|
||||||
);
|
);
|
||||||
|
|
||||||
if (userConfig.isUsingAsCollateral(reserve.id)) {
|
if (reserve.configuration.getLtv() > 0) {
|
||||||
if (userConfig.isBorrowingAny()) {
|
if (userConfig.isBorrowingAny()) {
|
||||||
ValidationLogic.validateHFAndExposureCap(
|
ValidationLogic.validateHFAndExposureCap(
|
||||||
asset,
|
asset,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user