You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kyberswap-solutions/kyberswap-aggregator/aggregator-api-specification/permit.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,9 @@ description: >-
10
10
Refer to [evm-swaps.md](evm-swaps.md"mention") for details on where `permit`can be used
11
11
{% endhint %}
12
12
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.
0 commit comments