Skip to content

Commit

Permalink
fix: missing safeTransfer
Browse files Browse the repository at this point in the history
  • Loading branch information
antoncoding committed Jul 27, 2021
1 parent e905795 commit cd330bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/core/HodlERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ contract HodlERC20 is ERC20PermitUpgradeable {
*/
function sweep(address _token, uint256 _amount) external {
require(_token != address(token) && _token != address(bonusToken), "INVALID_TOKEN_TO_SWEEP");
IERC20WithDetail(_token).transfer(feeRecipient, _amount);
IERC20WithDetail(_token).safeTransfer(feeRecipient, _amount);
}

/**********************
Expand Down

0 comments on commit cd330bf

Please sign in to comment.