Skip to content

Commit 06861dc

Browse files
authored
Update docs for SafeERC20.forceApprove (#4231)
1 parent 37270eb commit 06861dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/token/ERC20/utils/SafeERC20.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ library SafeERC20 {
7070

7171
/**
7272
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
73-
* non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
74-
* 0 before setting it to a non-zero value.
73+
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
74+
* to be set to zero before setting it to a non-zero value, such as USDT.
7575
*/
7676
function forceApprove(IERC20 token, address spender, uint256 value) internal {
7777
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

0 commit comments

Comments
 (0)