Certain ERC20 token does not return bool from approve and transfer and transaction revert
Certain ERC20 token does not return bool from approve and transfer and transaction revert\\nAccording to\\nSome tokens do not return a bool on ERC20 methods and use IERC20 token interface will revert transaction\\nCertain ERC20 token does not return bool from approve and transfer and transaction revert\\n```\\n   function setApprovalForERC20(\\n        IERC20 erc20Contract,\\n        address to,\\n        uint256 amount\\n    ) external onlyClubOwner {\\n        erc20Contract.approve(to, amount);\\n    }\\n```\\n\\nand\\n```\\nfunction transferERC20(\\n IERC20 erc20Contract,\\n address to,\\n uint256 amount\\n) external onlyClubOwner {\\n erc20Contract.transfer(to, amount);\\n}\\n```\\n\\nthe transfer / approve can fail slienlty
Issue Certain ERC20 token does not return bool from approve and transfer and transaction revert\\nUse Openzeppelin SafeTransfer / SafeApprove
Some tokens do not return a bool on ERC20 methods and use IERC20 token interface will revert transaction
```\\n   function setApprovalForERC20(\\n        IERC20 erc20Contract,\\n        address to,\\n        uint256 amount\\n    ) external onlyClubOwner {\\n        erc20Contract.approve(to, amount);\\n    }\\n```\\n