diff --git a/contracts/core/HodlERC20.sol b/contracts/core/HodlERC20.sol index 1fefbd7..c738a86 100644 --- a/contracts/core/HodlERC20.sol +++ b/contracts/core/HodlERC20.sol @@ -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); } /**********************