PR changes

This commit is contained in:
Josh Stevens 2021-09-13 13:44:50 +01:00
parent b25c7a0ad5
commit 96a54e4f92

View File

@ -53,7 +53,7 @@ contract UiIncentiveDataProvider is IUiIncentiveDataProvider {
IAaveIncentivesController aTokenIncentiveController = IAaveIncentivesController aTokenIncentiveController =
IAToken(baseData.aTokenAddress).getIncentivesController(); IAToken(baseData.aTokenAddress).getIncentivesController();
if (address(aTokenIncentiveController) != address(0)) {
( (
uint256 aTokenIncentivesIndex, uint256 aTokenIncentivesIndex,
uint256 aEmissionPerSecond, uint256 aEmissionPerSecond,
@ -68,10 +68,12 @@ contract UiIncentiveDataProvider is IUiIncentiveDataProvider {
baseData.aTokenAddress, baseData.aTokenAddress,
aTokenIncentiveController.REWARD_TOKEN() aTokenIncentiveController.REWARD_TOKEN()
); );
}
IAaveIncentivesController sTokenIncentiveController = IAaveIncentivesController sTokenIncentiveController =
IStableDebtToken(baseData.stableDebtTokenAddress).getIncentivesController(); IStableDebtToken(baseData.stableDebtTokenAddress).getIncentivesController();
if (address(sTokenIncentiveController) != address(0)) {
( (
uint256 sTokenIncentivesIndex, uint256 sTokenIncentivesIndex,
uint256 sEmissionPerSecond, uint256 sEmissionPerSecond,
@ -86,10 +88,12 @@ contract UiIncentiveDataProvider is IUiIncentiveDataProvider {
baseData.stableDebtTokenAddress, baseData.stableDebtTokenAddress,
sTokenIncentiveController.REWARD_TOKEN() sTokenIncentiveController.REWARD_TOKEN()
); );
}
IAaveIncentivesController vTokenIncentiveController = IAaveIncentivesController vTokenIncentiveController =
IVariableDebtToken(baseData.variableDebtTokenAddress).getIncentivesController(); IVariableDebtToken(baseData.variableDebtTokenAddress).getIncentivesController();
if (address(vTokenIncentiveController) != address(0)) {
( (
uint256 vTokenIncentivesIndex, uint256 vTokenIncentivesIndex,
uint256 vEmissionPerSecond, uint256 vEmissionPerSecond,
@ -105,6 +109,7 @@ contract UiIncentiveDataProvider is IUiIncentiveDataProvider {
vTokenIncentiveController.REWARD_TOKEN() vTokenIncentiveController.REWARD_TOKEN()
); );
} }
}
return (reservesIncentiveData); return (reservesIncentiveData);
} }