- Removed shadowing of totalSupply on IncentiveizedERC20

This commit is contained in:
eboado 2020-10-27 13:04:07 +01:00
parent bb6b322925
commit 85246906e4

View File

@ -181,10 +181,10 @@ contract IncentivizedERC20 is Context, IERC20, IERC20Detailed {
_balances[recipient] = _balances[recipient].add(amount);
if (address(_incentivesController) != address(0)) {
uint256 totalSupply = _totalSupply;
_incentivesController.handleAction(sender, totalSupply, oldSenderBalance);
uint256 currentTotalSupply = _totalSupply;
_incentivesController.handleAction(sender, currentTotalSupply, oldSenderBalance);
if (sender != recipient) {
_incentivesController.handleAction(recipient, totalSupply, oldRecipientBalance);
_incentivesController.handleAction(recipient, currentTotalSupply, oldRecipientBalance);
}
}
}