Skip to content

Commit 15e91e9

Browse files
committed
Clarify the exact format of the permit API field
1 parent faaf7f5 commit 15e91e9

File tree

1 file changed

+3
-1
lines changed
  • kyberswap-solutions/kyberswap-aggregator/aggregator-api-specification

1 file changed

+3
-1
lines changed

kyberswap-solutions/kyberswap-aggregator/aggregator-api-specification/permit.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ description: >-
1010
Refer to [evm-swaps.md](evm-swaps.md "mention") for details on where `permit`can be used
1111
{% endhint %}
1212

13-
[EIP-2612](https://eips.ethereum.org/EIPS/eip-2612) tokens can be swapped directly without an initial approval transaction. The client needs to provide a directly usable `permit` calldata as a parameter to [#chain-api-v1-route-build](evm-swaps.md#chain-api-v1-route-build "mention") API call. Refer to the [EIP-2612](https://eips.ethereum.org/EIPS/eip-2612) specification for how to sign and encode this call. `permit` ABI is provided below for reference:
13+
[EIP-2612](https://eips.ethereum.org/EIPS/eip-2612) tokens can be swapped directly without an initial approval transaction. The client needs to provide a directly usable `permit` as a parameter to [#chain-api-v1-route-build](evm-swaps.md#chain-api-v1-route-build "mention") API call. Refer to the [EIP-2612](https://eips.ethereum.org/EIPS/eip-2612) specification for how to sign and encode this call. `permit` ABI is provided below for reference:
14+
15+
The API expects the permit data to be the ABI-encoded input parameters of the permit function, excluding the 4-byte function selector, and hex-encoded.
1416

1517
{% code overflow="wrap" %}
1618
```solidity

0 commit comments

Comments
 (0)