Add collateral enabled flag

This commit is contained in:
Mubaris NK 2020-12-09 17:01:11 +05:30
parent ffc2cd7589
commit 505ccf0cd4
No known key found for this signature in database
GPG Key ID: 1F132294E8700320
2 changed files with 5 additions and 0 deletions

View File

@ -125,6 +125,7 @@ contract AaveHelpers is DSMath {
uint supplyRate;
uint borrowRate;
uint borrowModal;
bool isCollateral;
AaveTokenData aaveTokenData;
}
@ -200,6 +201,7 @@ contract AaveHelpers is DSMath {
,
uint fee,
,,
bool isCollateral
) = aave.getUserReserveData(token, user);
uint supplyRate = aaveCore.getReserveCurrentLiquidityRate(token);
@ -215,6 +217,7 @@ contract AaveHelpers is DSMath {
supplyRate,
borrowRate,
borrowModal,
isCollateral,
aaveTokenData
);
}

View File

@ -153,6 +153,7 @@ contract AaveHelpers is DSMath {
uint supplyRate;
uint stableBorrowRate;
uint variableBorrowRate;
bool isCollateral;
AaveTokenData aaveTokenData;
}
@ -225,6 +226,7 @@ contract AaveHelpers is DSMath {
tokenData.stableBorrowBalance,
tokenData.variableBorrowBalance,
,,,,,
tokenData.isCollateral
) = aaveData.getUserReserveData(token, user);
(