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 supplyRate;
|
||||||
uint borrowRate;
|
uint borrowRate;
|
||||||
uint borrowModal;
|
uint borrowModal;
|
||||||
|
bool isCollateral;
|
||||||
AaveTokenData aaveTokenData;
|
AaveTokenData aaveTokenData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,6 +201,7 @@ contract AaveHelpers is DSMath {
|
||||||
,
|
,
|
||||||
uint fee,
|
uint fee,
|
||||||
,,
|
,,
|
||||||
|
bool isCollateral
|
||||||
) = aave.getUserReserveData(token, user);
|
) = aave.getUserReserveData(token, user);
|
||||||
|
|
||||||
uint supplyRate = aaveCore.getReserveCurrentLiquidityRate(token);
|
uint supplyRate = aaveCore.getReserveCurrentLiquidityRate(token);
|
||||||
|
@ -215,6 +217,7 @@ contract AaveHelpers is DSMath {
|
||||||
supplyRate,
|
supplyRate,
|
||||||
borrowRate,
|
borrowRate,
|
||||||
borrowModal,
|
borrowModal,
|
||||||
|
isCollateral,
|
||||||
aaveTokenData
|
aaveTokenData
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -153,6 +153,7 @@ contract AaveHelpers is DSMath {
|
||||||
uint supplyRate;
|
uint supplyRate;
|
||||||
uint stableBorrowRate;
|
uint stableBorrowRate;
|
||||||
uint variableBorrowRate;
|
uint variableBorrowRate;
|
||||||
|
bool isCollateral;
|
||||||
AaveTokenData aaveTokenData;
|
AaveTokenData aaveTokenData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -225,6 +226,7 @@ contract AaveHelpers is DSMath {
|
||||||
tokenData.stableBorrowBalance,
|
tokenData.stableBorrowBalance,
|
||||||
tokenData.variableBorrowBalance,
|
tokenData.variableBorrowBalance,
|
||||||
,,,,,
|
,,,,,
|
||||||
|
tokenData.isCollateral
|
||||||
) = aaveData.getUserReserveData(token, user);
|
) = aaveData.getUserReserveData(token, user);
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user