API reference v1.0
Introduction
periphery
tokenomics
IERC20PermitAllowed

IERC20PermitAllowed

IERC20PermitAllowed

Interface for permit Interface used by DAI/CHAI for permit

Functions

permit

permit(address,address,uint256,uint256,bool,uint8,bytes32,bytes32) external

Approve the spender to spend some tokens via the holder signature

NameTypeDescription
holderaddressThe address of the token holder, the token owner
spenderaddressThe address of the token spender
nonceuint256The holder'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 holder along with `r` and `s`
rbytes32Must produce valid secp256k1 signature from the holder along with `v` and `s`
sbytes32Must produce valid secp256k1 signature from the holder along with `r` and `v`

IERC20PermitAllowed

Interface for permit Interface used by DAI/CHAI for permit

Functions

permit

permit(address,address,uint256,uint256,bool,uint8,bytes32,bytes32) external

Approve the spender to spend some tokens via the holder signature

NameTypeDescription
holderaddressThe address of the token holder, the token owner
spenderaddressThe address of the token spender
nonceuint256The holder'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 holder along with `r` and `s`
rbytes32Must produce valid secp256k1 signature from the holder along with `v` and `s`
sbytes32Must produce valid secp256k1 signature from the holder along with `r` and `v`