removed getCollateralStatus func

This commit is contained in:
Thrilok kumar 2021-04-16 22:06:26 +05:30 committed by GitHub
parent f0b0c19698
commit f239c0eb6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,10 +45,6 @@ abstract contract Helpers is Stores, DSMath, Variables {
return data;
}
function getCollateralStatus(address token, address user) internal view returns (bool enabled) {
(uint bal, , , , , , , , bool isCol) = aaveData.getUserReserveData(token, user);
enabled = bal > 0 && !isCol;
}
function isPositionSafe() internal view returns (bool isOk) {
AaveInterface aave = AaveInterface(aaveProvider.getLendingPool());