Skip to content

Commit

Permalink
Merge pull request #66 from aave/65/remove-lending-pool-wording
Browse files Browse the repository at this point in the history
fix: Rename lendingPool to pool in UiProvider contract
  • Loading branch information
miguelmtzinf authored Feb 25, 2022
2 parents 509484a + 2e50d3f commit 377f0f7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions contracts/misc/UiIncentiveDataProviderV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ 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
for (uint256 i = 0; i < reserves.length; i++) {
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
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit 377f0f7

Please sign in to comment.