KyberSwap Docs
Search
K

SelfPermit

Handles the encoding of calldata required to call permit on any EIP-2612 compliant token.
GitHub File: selfPermit.ts

Properties

Public

Property
Type
Modifier
Description
INTERFACE
Interface
static
The Application Binary Interface for the related Elastic contracts.

Constructor

Private constructor that cannot be constructed.

Methods

encodePermit() - public static

Handles the encoding of calldata that permits the contract to spend the specified token from the message sender.

Parameters

Params
Type
Description
token
Token
The token to permit.
options
The options for the permit operation.

Returns

Type
Description
string
The encoded data that permits the contract to spend the input token.
Last modified 4mo ago