mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
removed extra external calls that are not needed
This commit is contained in:
parent
5ba17aa1c1
commit
b84a486d10
|
@ -198,9 +198,6 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
|
|||
if (user != address(0)) {
|
||||
incentivesUserData.userUnclaimedRewards = incentivesController.getUserUnclaimedRewards(user);
|
||||
incentivesUserData.rewardToken = incentivesController.REWARD_TOKEN();
|
||||
incentivesUserData.precision = incentivesController.PRECISION();
|
||||
incentivesUserData.rewardTokenDecimals = IERC20Detailed(incentivesUserData.rewardToken)
|
||||
.decimals();
|
||||
incentivesUserData.rewardTokenPriceEth = oracle.getAssetPrice(incentivesUserData.rewardToken);
|
||||
}
|
||||
|
||||
|
|
|
@ -57,9 +57,7 @@ interface IUiPoolDataProvider {
|
|||
struct IncentivesUserData {
|
||||
address rewardToken;
|
||||
uint256 userUnclaimedRewards;
|
||||
uint256 rewardTokenDecimals;
|
||||
uint256 rewardTokenPriceEth;
|
||||
uint8 precision;
|
||||
}
|
||||
|
||||
struct UserReserveData {
|
||||
|
|
Loading…
Reference in New Issue
Block a user