draft-IERC7674.sol 487 B

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