mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
added public to incentives controller and price oracle so we can remove getters
This commit is contained in:
parent
99a0d17de4
commit
9ed357662b
|
@ -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
|
||||
|
|
|
@ -85,8 +85,4 @@ interface IUiPoolDataProvider {
|
|||
uint256,
|
||||
IncentivesDataUser memory
|
||||
);
|
||||
|
||||
function getPriceOracle() external view returns (address);
|
||||
|
||||
function getIncentivesController() external view returns (address);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user