fix: updated priceInEth to generic naming

This commit is contained in:
sendra 2021-10-08 17:43:29 +02:00
parent de95ca55b9
commit b7f0a2fd41
2 changed files with 3 additions and 4 deletions

View File

@ -89,8 +89,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
reserveData.stableDebtTokenAddress = baseData.stableDebtTokenAddress;
reserveData.variableDebtTokenAddress = baseData.variableDebtTokenAddress;
reserveData.interestRateStrategyAddress = baseData.interestRateStrategyAddress;
// TODO: change naming to base something
reserveData.priceInEth = oracle.getAssetPrice(reserveData.underlyingAsset);
reserveData.priceInMarketReferenceCurrency = oracle.getAssetPrice(reserveData.underlyingAsset);
reserveData.availableLiquidity = IERC20Detailed(reserveData.underlyingAsset).balanceOf(
reserveData.aTokenAddress
@ -230,7 +229,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
reserveData.stableDebtTokenAddress = baseData.stableDebtTokenAddress;
reserveData.variableDebtTokenAddress = baseData.variableDebtTokenAddress;
reserveData.interestRateStrategyAddress = baseData.interestRateStrategyAddress;
reserveData.priceInEth = oracle.getAssetPrice(reserveData.underlyingAsset);
reserveData.priceInMarketReferenceCurrency = oracle.getAssetPrice(reserveData.underlyingAsset);
reserveData.availableLiquidity = IERC20Detailed(reserveData.underlyingAsset).balanceOf(
reserveData.aTokenAddress

View File

@ -36,7 +36,7 @@ interface IUiPoolDataProvider {
uint256 averageStableRate;
uint256 stableDebtLastUpdateTimestamp;
uint256 totalScaledVariableDebt;
uint256 priceInEth;
uint256 priceInMarketReferenceCurrency;
uint256 variableRateSlope1;
uint256 variableRateSlope2;
uint256 stableRateSlope1;