mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Merge branch 'fix/85-total-supply-shadowing' into 'master'
Fixes #85 Closes #85 See merge request aave-tech/protocol-v2!94
This commit is contained in:
commit
cb03bab6ea
|
@ -181,10 +181,10 @@ contract IncentivizedERC20 is Context, IERC20, IERC20Detailed {
|
||||||
_balances[recipient] = _balances[recipient].add(amount);
|
_balances[recipient] = _balances[recipient].add(amount);
|
||||||
|
|
||||||
if (address(_incentivesController) != address(0)) {
|
if (address(_incentivesController) != address(0)) {
|
||||||
uint256 totalSupply = _totalSupply;
|
uint256 currentTotalSupply = _totalSupply;
|
||||||
_incentivesController.handleAction(sender, totalSupply, oldSenderBalance);
|
_incentivesController.handleAction(sender, currentTotalSupply, oldSenderBalance);
|
||||||
if (sender != recipient) {
|
if (sender != recipient) {
|
||||||
_incentivesController.handleAction(recipient, totalSupply, oldRecipientBalance);
|
_incentivesController.handleAction(recipient, currentTotalSupply, oldRecipientBalance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user