Permit
For swaps from supported EIP-2616 tokens, the `permit` parameter allows swapping without an approval transaction beforehand.
Last updated
Was this helpful?
For swaps from supported EIP-2616 tokens, the `permit` parameter allows swapping without an approval transaction beforehand.
Last updated
Was this helpful?
tokens can be swapped directly without an initial approval transaction. The client needs to provide a directly usable permit
calldata as a parameter to API call. Refer to the specification for how to sign and encode this call. permit
ABI is provided below for reference:
owner
: the swap's token sender
spender
: the KyberSwap router address as returned by the GET-route API
value
: the amount of token to be swapped
deadline
: deadline by which the permit is valid
v
, r
, s
: a valid secp256k1
signature from the swap's token sender for the following message: