added public to incentives controller and price oracle so we can remove getters

This commit is contained in:
sendra 2021-03-30 12:42:20 +02:00
parent 99a0d17de4
commit 9ed357662b
2 changed files with 2 additions and 14 deletions

View File

@ -25,22 +25,14 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
using UserConfiguration for DataTypes.UserConfigurationMap;
address public constant MOCK_USD_ADDRESS = 0x10F7Fc1F91Ba351f9C629c5947AD69bD03C05b96;
IAaveIncentivesController immutable incentivesController;
IPriceOracleGetter immutable oracle;
IAaveIncentivesController public immutable incentivesController;
IPriceOracleGetter public immutable oracle;
constructor(IAaveIncentivesController _incentivesController, IPriceOracleGetter _oracle) public {
incentivesController = _incentivesController;
oracle = _oracle;
}
function getPriceOracle() public view override returns (address) {
return address(oracle);
}
function getIncentivesController() public view override returns (address) {
return address(incentivesController);
}
function getInterestRateStrategySlopes(DefaultReserveInterestRateStrategy interestRateStrategy)
internal
view

View File

@ -85,8 +85,4 @@ interface IUiPoolDataProvider {
uint256,
IncentivesDataUser memory
);
function getPriceOracle() external view returns (address);
function getIncentivesController() external view returns (address);
}