mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
added precision
This commit is contained in:
parent
947900aa2b
commit
5279eb3255
|
@ -71,7 +71,8 @@ contract UiIncentiveDataProvider is IUiIncentiveDataProvider {
|
|||
baseData.aTokenAddress,
|
||||
aRewardToken,
|
||||
address(aTokenIncentiveController),
|
||||
IERC20Detailed(aRewardToken).decimals()
|
||||
IERC20Detailed(aRewardToken).decimals(),
|
||||
aTokenIncentiveController.PRECISION()
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -95,7 +96,8 @@ contract UiIncentiveDataProvider is IUiIncentiveDataProvider {
|
|||
baseData.stableDebtTokenAddress,
|
||||
sRewardToken,
|
||||
address(sTokenIncentiveController),
|
||||
IERC20Detailed(sRewardToken).decimals()
|
||||
IERC20Detailed(sRewardToken).decimals(),
|
||||
sTokenIncentiveController.PRECISION()
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -119,7 +121,8 @@ contract UiIncentiveDataProvider is IUiIncentiveDataProvider {
|
|||
baseData.variableDebtTokenAddress,
|
||||
vRewardToken,
|
||||
address(vTokenIncentiveController),
|
||||
IERC20Detailed(vRewardToken).decimals()
|
||||
IERC20Detailed(vRewardToken).decimals(),
|
||||
vTokenIncentiveController.PRECISION()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ interface IUiIncentiveDataProvider {
|
|||
address rewardTokenAddress;
|
||||
address incentiveControllerAddress;
|
||||
uint8 rewardTokenDecimals;
|
||||
uint8 precision;
|
||||
}
|
||||
|
||||
struct UserReserveIncentiveData {
|
||||
|
|
Loading…
Reference in New Issue
Block a user