change priceInEth > priceForAsset

This commit is contained in:
Josh Stevens 2021-09-01 14:28:41 +01:00
parent e43d791d39
commit c786b246cc
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
reserveData.stableDebtTokenAddress = baseData.stableDebtTokenAddress;
reserveData.variableDebtTokenAddress = baseData.variableDebtTokenAddress;
reserveData.interestRateStrategyAddress = baseData.interestRateStrategyAddress;
reserveData.priceInEth = oracle.getAssetPrice(reserveData.underlyingAsset);
reserveData.priceForAsset = oracle.getAssetPrice(reserveData.underlyingAsset);
reserveData.availableLiquidity = IERC20Detailed(reserveData.underlyingAsset).balanceOf(
reserveData.aTokenAddress
@ -212,7 +212,7 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
reserveData.stableDebtTokenAddress = baseData.stableDebtTokenAddress;
reserveData.variableDebtTokenAddress = baseData.variableDebtTokenAddress;
reserveData.interestRateStrategyAddress = baseData.interestRateStrategyAddress;
reserveData.priceInEth = oracle.getAssetPrice(reserveData.underlyingAsset);
reserveData.priceForAsset = oracle.getAssetPrice(reserveData.underlyingAsset);
reserveData.availableLiquidity = IERC20Detailed(reserveData.underlyingAsset).balanceOf(
reserveData.aTokenAddress

View File

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