fixed not needed casting

This commit is contained in:
sendra 2021-03-26 13:59:49 +01:00
parent 83a499f299
commit 2028631ad7

View File

@ -58,8 +58,6 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
uint256 uint256
) )
{ {
IAaveIncentivesController incentivesController =
IAaveIncentivesController(incentivesControllerAddr);
ILendingPool lendingPool = ILendingPool(provider.getLendingPool()); ILendingPool lendingPool = ILendingPool(provider.getLendingPool());
IPriceOracleGetter oracle = IPriceOracleGetter(provider.getPriceOracle()); IPriceOracleGetter oracle = IPriceOracleGetter(provider.getPriceOracle());
address[] memory reserves = lendingPool.getReservesList(); address[] memory reserves = lendingPool.getReservesList();
@ -184,8 +182,6 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
IAaveIncentivesController incentivesControllerAddr, IAaveIncentivesController incentivesControllerAddr,
address user address user
) external view override returns (IncentivesDataUser memory) { ) external view override returns (IncentivesDataUser memory) {
IAaveIncentivesController incentivesController =
IAaveIncentivesController(incentivesControllerAddr);
ILendingPool lendingPool = ILendingPool(provider.getLendingPool()); ILendingPool lendingPool = ILendingPool(provider.getLendingPool());
IPriceOracleGetter oracle = IPriceOracleGetter(provider.getPriceOracle()); IPriceOracleGetter oracle = IPriceOracleGetter(provider.getPriceOracle());
address[] memory reserves = lendingPool.getReservesList(); address[] memory reserves = lendingPool.getReservesList();