File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
contracts/token/ERC20/utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ library SafeERC20Upgradeable {
76
76
77
77
/**
78
78
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
79
- * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
80
- * 0 before setting it to a non-zero value.
79
+ * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
80
+ * to be set to zero before setting it to a non-zero value, such as USDT .
81
81
*/
82
82
function forceApprove (IERC20Upgradeable token , address spender , uint256 value ) internal {
83
83
bytes memory approvalCall = abi.encodeWithSelector (token.approve.selector , spender, value);
You can’t perform that action at this time.
0 commit comments