mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix _incentivesController call in _transfer
This commit is contained in:
parent
3340bb14fb
commit
6af1e0923f
|
@ -180,8 +180,10 @@ contract ERC20 is Context, IERC20, IERC20Detailed {
|
|||
if (address(_incentivesController) != address(0)) {
|
||||
uint256 totalSupply = _totalSupply;
|
||||
_incentivesController.handleAction(sender, totalSupply, oldSenderBalance);
|
||||
if (sender != recipient) {
|
||||
_incentivesController.handleAction(recipient, totalSupply, oldRecipientBalance);
|
||||
}
|
||||
}
|
||||
emit Transfer(sender, recipient, amount);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user