From b7f0a2fd4169ece65d3a41c0476e61e458a0593c Mon Sep 17 00:00:00 2001 From: sendra Date: Fri, 8 Oct 2021 17:43:29 +0200 Subject: [PATCH] fix: updated priceInEth to generic naming --- contracts/misc/UiPoolDataProvider.sol | 5 ++--- contracts/misc/interfaces/IUiPoolDataProvider.sol | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/contracts/misc/UiPoolDataProvider.sol b/contracts/misc/UiPoolDataProvider.sol index ca4a7917..95ab84a1 100644 --- a/contracts/misc/UiPoolDataProvider.sol +++ b/contracts/misc/UiPoolDataProvider.sol @@ -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 diff --git a/contracts/misc/interfaces/IUiPoolDataProvider.sol b/contracts/misc/interfaces/IUiPoolDataProvider.sol index 9f8e9dd7..6b2884d6 100644 --- a/contracts/misc/interfaces/IUiPoolDataProvider.sol +++ b/contracts/misc/interfaces/IUiPoolDataProvider.sol @@ -36,7 +36,7 @@ interface IUiPoolDataProvider { uint256 averageStableRate; uint256 stableDebtLastUpdateTimestamp; uint256 totalScaledVariableDebt; - uint256 priceInEth; + uint256 priceInMarketReferenceCurrency; uint256 variableRateSlope1; uint256 variableRateSlope2; uint256 stableRateSlope1;