mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
removed getCollateralStatus func
This commit is contained in:
parent
f0b0c19698
commit
f239c0eb6d
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user