Skip to content

Commit

Permalink
fix: Undo contracts code change
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf committed Sep 9, 2021
1 parent 4416c92 commit b1f296e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/protocol/tokenization/IncentivizedERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ abstract contract IncentivizedERC20 is Context, IERC20, IERC20Detailed {
/// @inheritdoc IERC20
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
emit Transfer(_msgSender(), recipient, amount);
return true;
}

Expand Down Expand Up @@ -95,6 +96,7 @@ abstract contract IncentivizedERC20 is Context, IERC20, IERC20Detailed {
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()] - amount);
emit Transfer(sender, recipient, amount);
return true;
}

Expand Down Expand Up @@ -142,7 +144,6 @@ abstract contract IncentivizedERC20 is Context, IERC20, IERC20Detailed {
incentivesControllerLocal.handleAction(recipient, currentTotalSupply, oldRecipientBalance);
}
}
emit Transfer(sender, recipient, amount);
}

function _mint(address account, uint256 amount) internal virtual {
Expand Down

0 comments on commit b1f296e

Please sign in to comment.