IERC2612Permit
Functions
permit
*Sets amount as the allowance of spender over owner's tokens,
given owner's signed approval.
IMPORTANT: The same issues IERC20-approve has related to transaction
ordering also apply here.
Emits an {Approval} event.
Requirements:
ownercannot be the zero address.spendercannot be the zero address.deadlinemust be a timestamp in the future.v,randsmust be a validsecp256k1signature fromownerover the EIP712-formatted function arguments.- the signature must use
owner's current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section].*
function permit(address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s)
external;
nonces
Returns the current ERC2612 nonce for owner. This value must be
included whenever a signature is generated for permit.
Every successful call to {permit} increases owner's nonce by one. This
prevents a signature from being used multiple times.
function nonces(address owner) external view returns (uint256);