IDAIPermit

Git Source

Functions

permit

function permit(
    address holder,
    address spender,
    uint256 nonce,
    uint256 expiry,
    bool allowed,
    uint8 v,
    bytes32 r,
    bytes32 s
)
    external;

Parameters

NameTypeDescription
holderaddressThe address of the token owner.
spenderaddressThe address of the token spender.
nonceuint256The owner's nonce, increases at each call to permit.
expiryuint256The timestamp at which the permit is no longer valid.
allowedboolBoolean that sets approval amount, true for type(uint256).max and false for 0.
vuint8Must produce valid secp256k1 signature from the owner along with r and s.
rbytes32Must produce valid secp256k1 signature from the owner along with v and s.
sbytes32Must produce valid secp256k1 signature from the owner along with r and v.

nonces

function nonces(address holder) external view returns (uint256);

Parameters

NameTypeDescription
holderaddressThe address of the token owner.