mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
feat: removed user updates on droped reserves
This commit is contained in:
parent
9c7458242b
commit
18fc7252b6
|
@ -93,6 +93,9 @@ library GenericLogic {
|
|||
}
|
||||
|
||||
vars.currentReserveAddress = reserves[vars.i];
|
||||
|
||||
if (vars.currentReserveAddress == address(0)) continue;
|
||||
|
||||
DataTypes.ReserveData storage currentReserve = reservesData[vars.currentReserveAddress];
|
||||
|
||||
(vars.ltv, vars.liquidationThreshold, , vars.decimals, ) = currentReserve
|
||||
|
@ -132,7 +135,7 @@ library GenericLogic {
|
|||
IERC20(currentReserve.stableDebtTokenAddress).balanceOf(user)
|
||||
);
|
||||
vars.userDebtETH = vars.assetPrice.mul(vars.userDebt).div(vars.assetUnit);
|
||||
vars.totalDebtInETH = vars.totalDebtInETH.add(vars.userDebtETH);
|
||||
vars.totalDebtInETH = vars.totalDebtInETH.add(vars.userDebtETH);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user