Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 377f0f7

Browse files
authored
Merge pull request #66 from aave/65/remove-lending-pool-wording
fix: Rename lendingPool to pool in UiProvider contract
2 parents 509484a + 2e50d3f commit 377f0f7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

contracts/misc/UiIncentiveDataProviderV3.sol

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ contract UiIncentiveDataProviderV3 is IUiIncentiveDataProviderV3 {
3939
view
4040
returns (AggregatedReserveIncentiveData[] memory)
4141
{
42-
IPool lendingPool = IPool(provider.getPool());
43-
address[] memory reserves = lendingPool.getReservesList();
42+
IPool pool = IPool(provider.getPool());
43+
address[] memory reserves = pool.getReservesList();
4444
AggregatedReserveIncentiveData[]
4545
memory reservesIncentiveData = new AggregatedReserveIncentiveData[](reserves.length);
4646
// Iterate through the reserves to get all the information from the (a/s/v) Tokens
4747
for (uint256 i = 0; i < reserves.length; i++) {
4848
AggregatedReserveIncentiveData memory reserveIncentiveData = reservesIncentiveData[i];
4949
reserveIncentiveData.underlyingAsset = reserves[i];
5050

51-
DataTypes.ReserveData memory baseData = lendingPool.getReserveData(reserves[i]);
51+
DataTypes.ReserveData memory baseData = pool.getReserveData(reserves[i]);
5252

5353
// Get aTokens rewards information
5454
// TODO: check that this is deployed correctly on contract and remove casting
@@ -234,15 +234,15 @@ contract UiIncentiveDataProviderV3 is IUiIncentiveDataProviderV3 {
234234
view
235235
returns (UserReserveIncentiveData[] memory)
236236
{
237-
IPool lendingPool = IPool(provider.getPool());
238-
address[] memory reserves = lendingPool.getReservesList();
237+
IPool pool = IPool(provider.getPool());
238+
address[] memory reserves = pool.getReservesList();
239239

240240
UserReserveIncentiveData[] memory userReservesIncentivesData = new UserReserveIncentiveData[](
241241
user != address(0) ? reserves.length : 0
242242
);
243243

244244
for (uint256 i = 0; i < reserves.length; i++) {
245-
DataTypes.ReserveData memory baseData = lendingPool.getReserveData(reserves[i]);
245+
DataTypes.ReserveData memory baseData = pool.getReserveData(reserves[i]);
246246

247247
// user reserve data
248248
userReservesIncentivesData[i].underlyingAsset = reserves[i];

0 commit comments

Comments
 (0)