mirror of
https://github.com/Instadapp/dsa-resolvers-deprecated.git
synced 2024-07-29 22:38:16 +00:00
Add collateral enabled flag
This commit is contained in:
parent
ffc2cd7589
commit
505ccf0cd4
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
(
|
||||
|
|
Loading…
Reference in New Issue
Block a user