removed extra external calls that are not needed

This commit is contained in:
sendra 2021-04-06 16:17:04 +02:00
parent 5ba17aa1c1
commit b84a486d10
2 changed files with 0 additions and 5 deletions

View File

@ -198,9 +198,6 @@ contract UiPoolDataProvider is IUiPoolDataProvider {
if (user != address(0)) { if (user != address(0)) {
incentivesUserData.userUnclaimedRewards = incentivesController.getUserUnclaimedRewards(user); incentivesUserData.userUnclaimedRewards = incentivesController.getUserUnclaimedRewards(user);
incentivesUserData.rewardToken = incentivesController.REWARD_TOKEN(); incentivesUserData.rewardToken = incentivesController.REWARD_TOKEN();
incentivesUserData.precision = incentivesController.PRECISION();
incentivesUserData.rewardTokenDecimals = IERC20Detailed(incentivesUserData.rewardToken)
.decimals();
incentivesUserData.rewardTokenPriceEth = oracle.getAssetPrice(incentivesUserData.rewardToken); incentivesUserData.rewardTokenPriceEth = oracle.getAssetPrice(incentivesUserData.rewardToken);
} }

View File

@ -57,9 +57,7 @@ interface IUiPoolDataProvider {
struct IncentivesUserData { struct IncentivesUserData {
address rewardToken; address rewardToken;
uint256 userUnclaimedRewards; uint256 userUnclaimedRewards;
uint256 rewardTokenDecimals;
uint256 rewardTokenPriceEth; uint256 rewardTokenPriceEth;
uint8 precision;
} }
struct UserReserveData { struct UserReserveData {