From 2e50d3f57bd0ccc4d2649ec8c7b36770158829ee Mon Sep 17 00:00:00 2001 From: miguelmtzinf Date: Thu, 24 Feb 2022 17:21:21 +0100 Subject: [PATCH] fix: Rename lendingPool to pool in UiProvider contract --- contracts/misc/UiIncentiveDataProviderV3.sol | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/contracts/misc/UiIncentiveDataProviderV3.sol b/contracts/misc/UiIncentiveDataProviderV3.sol index 443617c3..e8735ab5 100644 --- a/contracts/misc/UiIncentiveDataProviderV3.sol +++ b/contracts/misc/UiIncentiveDataProviderV3.sol @@ -39,8 +39,8 @@ contract UiIncentiveDataProviderV3 is IUiIncentiveDataProviderV3 { view returns (AggregatedReserveIncentiveData[] memory) { - IPool lendingPool = IPool(provider.getPool()); - address[] memory reserves = lendingPool.getReservesList(); + IPool pool = IPool(provider.getPool()); + address[] memory reserves = pool.getReservesList(); AggregatedReserveIncentiveData[] memory reservesIncentiveData = new AggregatedReserveIncentiveData[](reserves.length); // Iterate through the reserves to get all the information from the (a/s/v) Tokens @@ -48,7 +48,7 @@ contract UiIncentiveDataProviderV3 is IUiIncentiveDataProviderV3 { AggregatedReserveIncentiveData memory reserveIncentiveData = reservesIncentiveData[i]; reserveIncentiveData.underlyingAsset = reserves[i]; - DataTypes.ReserveData memory baseData = lendingPool.getReserveData(reserves[i]); + DataTypes.ReserveData memory baseData = pool.getReserveData(reserves[i]); // Get aTokens rewards information // TODO: check that this is deployed correctly on contract and remove casting @@ -234,15 +234,15 @@ contract UiIncentiveDataProviderV3 is IUiIncentiveDataProviderV3 { view returns (UserReserveIncentiveData[] memory) { - IPool lendingPool = IPool(provider.getPool()); - address[] memory reserves = lendingPool.getReservesList(); + IPool pool = IPool(provider.getPool()); + address[] memory reserves = pool.getReservesList(); UserReserveIncentiveData[] memory userReservesIncentivesData = new UserReserveIncentiveData[]( user != address(0) ? reserves.length : 0 ); for (uint256 i = 0; i < reserves.length; i++) { - DataTypes.ReserveData memory baseData = lendingPool.getReserveData(reserves[i]); + DataTypes.ReserveData memory baseData = pool.getReserveData(reserves[i]); // user reserve data userReservesIncentivesData[i].underlyingAsset = reserves[i];