// SPDX-License-Identifier: MIT pragma solidity ^0.8.35; import { _IERC2612 } from './_IERC2612.sol'; /** * @title ERC2612 interface * @dev see https://eips.ethereum.org/EIPS/eip-2612. */ interface IERC2612 is _IERC2612 { /** * @notice return the EIP-712 domain separator unique to contract and chain * @return domainSeparator domain separator */ function DOMAIN_SEPARATOR() external view returns (bytes32 domainSeparator); /** * @notice get the current ERC2612 nonce for the given address * @return current nonce */ function nonces(address owner) external view returns (uint256); /** * @notice approve spender to transfer tokens held by owner via signature * @dev this function may be vulnerable to approval replay attacks * @param owner holder of tokens and signer of permit * @param spender beneficiary of approval * @param amount quantity of tokens to approve * @param v secp256k1 'v' value * @param r secp256k1 'r' value * @param s secp256k1 's' value */ function permit( address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; }