From 85246906e41a8515fb06d1f204ec720bc5f98e6c Mon Sep 17 00:00:00 2001 From: eboado Date: Tue, 27 Oct 2020 13:04:07 +0100 Subject: [PATCH] - Removed shadowing of totalSupply on IncentiveizedERC20 --- contracts/tokenization/IncentivizedERC20.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/tokenization/IncentivizedERC20.sol b/contracts/tokenization/IncentivizedERC20.sol index 771a8202..d97e9da2 100644 --- a/contracts/tokenization/IncentivizedERC20.sol +++ b/contracts/tokenization/IncentivizedERC20.sol @@ -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); } } }