SavingsXDai
Variables
wxdai
deploymentChainId
PERMIT_TYPEHASH
VERSION
Errors
ERC2612ExpiredSignature
Permit deadline has expired.
ERC2612InvalidSigner
Mismatched signature.
Functions
constructor
Set the underlying asset contract. This must be an ERC20-compatible contract (ERC20 or ERC777).
receive
_isValidSignature
permit
permit
_Sets value
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:
spender
cannot be the zero address.deadline
must be a timestamp in the future.v
,r
ands
must be a validsecp256k1
signature fromowner
over 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].
CAUTION: See Security Considerations above._
nonces
See {IERC20Permit-nonces}.
DOMAIN_SEPARATOR
See {IERC20Permit-DOMAIN_SEPARATOR}.
Last updated