draft-IERC7674.sol 567 B

1234567891011121314151617
  1. // SPDX-License-Identifier: MIT
  2. // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC7674.sol)
  3. pragma solidity ^0.8.20;
  4. import {IERC20} from "./IERC20.sol";
  5. /**
  6. * @dev Temporary Approval Extension for ERC-20 (https://github.com/ethereum/ERCs/pull/358[ERC-7674])
  7. */
  8. interface IERC7674 is IERC20 {
  9. /**
  10. * @dev Set the temporary allowance, allowing `spender` to withdraw (within the same transaction) assets
  11. * held by the caller.
  12. */
  13. function temporaryApprove(address spender, uint256 value) external returns (bool success);
  14. }