Skip to main content

IPermit2Forwarder

Git Source - Generated with forge doc

Interface for the Permit2Forwarder contract

Functions

permit

allows forwarding a single permit to permit2

this function is payable to allow multicall with NATIVE based actions

function permit(address owner, IAllowanceTransfer.PermitSingle calldata permitSingle, bytes calldata signature)
external
payable
returns (bytes memory err);

Parameters

NameTypeDescription
owneraddressthe owner of the tokens
permitSingleIAllowanceTransfer.PermitSinglethe permit data
signaturebytesthe signature of the permit; abi.encodePacked(r, s, v)

Returns

NameTypeDescription
errbytesthe error returned by a reverting permit call, empty if successful

permitBatch

allows forwarding batch permits to permit2

this function is payable to allow multicall with NATIVE based actions

function permitBatch(address owner, IAllowanceTransfer.PermitBatch calldata _permitBatch, bytes calldata signature)
external
payable
returns (bytes memory err);

Parameters

NameTypeDescription
owneraddressthe owner of the tokens
_permitBatchIAllowanceTransfer.PermitBatcha batch of approvals
signaturebytesthe signature of the permit; abi.encodePacked(r, s, v)

Returns

NameTypeDescription
errbytesthe error returned by a reverting permit call, empty if successful