BTB
/

KyberSwap Aggregator

DEX Aggregatorwebsite
DEX aggregator that splits a swap across many on-chain liquidity sources (plus RFQ). An agent gets the best route from the Aggregator API (GET /routes), has the API encode it (POST /route/build), approves the returned routerAddress for the input token, and sends the encoded calldata to the MetaAggregationRouterV2 router, which is deployed at the same address on every supported chain.

What you can do

swap (ERC-20 input)Swap an exact amount of one token for another at the best aggregated rate1) GET https://aggregator-api.kyberswap.com/{chain}/api/v1/routes?tokenIn=..&tokenOut=..&amountIn=.. with header x-client-id. 2) POST .../{chain}/api/v1/route/build with {routeSummary, sender: wallet, recipient: wallet, slippageTolerance: 50} and the same header. 3) If allowance(wallet, routerAddress) < amountIn, send tokenIn.approve(routerAddress, amountIn). 4) Send a tx {to: routerAddress, data: data, value: 0} (use the API's gas estimate plus a margin). Check that routerAddress is one of the official router addresses in this file before approving or sending.
swap (native token input)Sell ETH/BNB/POL/etc. directlyUse tokenIn=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE in /routes. No approval needed. After /route/build send {to: routerAddress, data: data, value: transactionValue}.
swap without a separate approval (permit)For EIP-2612 tokens, skip the approve txSign an EIP-2612 permit with spender = routerAddress and pass the encoded permit in the `permit` field of POST /route/build; then send the returned calldata as usual.
quote onlyGet expected output, price impact and gas cost without tradingGET /{chain}/api/v1/routes and read data.routeSummary.amountOut, amountOutUsd and gasUsd. There is no on-chain quoter; quotes come only from the API.
charge an integrator feeTake a fee on the swap for your appAdd feeAmount, chargeFeeBy (currency_in or currency_out), isInBps=true and feeReceiver to GET /routes; the fee is carried in routeSummary.extraFee and enforced by the router.
KyberSwap Elastic (Kyber's concentrated-liquidity AMM, a separate product) was exploited on 22 Nov 2023 across several chains (press reported losses of roughly $47M or more) and Elastic was discontinued on 23 Nov 2023. The aggregator routers listed here were not the exploited contracts; Elastic pools are no longer a route source.
Approvals: the router pulls tokenIn with transferFrom, so you must approve routerAddress. Approve only the exact amount and only an address listed here; an unlimited approval to the router is exposed if the router or a whitelisted executor is ever compromised.
Calldata from the API is opaque and provided as-is (Kyber's own disclaimer). Before signing, check `to` is an official router, value equals transactionValue, and amountOut/minimum received match expectations; simulate with enableGasEstimation or eth_call.
Routes go stale within seconds; rebuild if the user waits. The tx reverts if output falls below the minimum set by slippageTolerance (max 2000 bps unless ignoreCappedSlippage).

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
MetaAggregationRouterV2router on ethereum0x6131B5fae19EA4f9D964eAc0408E4408b66337b5
write swap((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Main swap entry. One tuple: (address callTarget, address approveTarget, bytes targetData, SwapDescriptionV2 desc, bytes clientData), where desc = (address srcToken, address dstToken, address[] srcReceivers, uint256[] srcAmounts, address[] feeReceivers, uint256[] feeAmounts, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit). Returns (uint256 returnAmount, uint256 gasUsed). Do not encode by hand: send the `data` returned by POST /{chain}/api/v1/route/build as the tx calldata to this router, with value = `transactionValue` (non-zero only when selling the native token, 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE). Reverts if output < minReturnAmount (set from slippageTolerance).
write swapSimpleMode(address,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes,bytes)
Gas-optimised swap path the API may encode instead of swap(): (address caller, SwapDescriptionV2 desc, bytes executorData, bytes clientData). ERC-20 input only (not payable). Use the API calldata as-is; whichever function the API chose is already encoded in `data`.
write swapGeneric((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Generic-executor variant with the same tuple as swap(). Only used when the API encodes it.
read WETH()
Wrapped native token address used by the router on this chain.
read isWhitelist(address)
Whether an executor/target is whitelisted by the router owner (only whitelisted executors can be called).
read owner()
Router owner (KyberSwap admin) who controls the executor whitelist and rescueFunds.
MetaAggregationRouterV2router on bsc0x6131B5fae19EA4f9D964eAc0408E4408b66337b5
write swap((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Main swap entry. One tuple: (address callTarget, address approveTarget, bytes targetData, SwapDescriptionV2 desc, bytes clientData), where desc = (address srcToken, address dstToken, address[] srcReceivers, uint256[] srcAmounts, address[] feeReceivers, uint256[] feeAmounts, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit). Returns (uint256 returnAmount, uint256 gasUsed). Do not encode by hand: send the `data` returned by POST /{chain}/api/v1/route/build as the tx calldata to this router, with value = `transactionValue` (non-zero only when selling the native token, 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE). Reverts if output < minReturnAmount (set from slippageTolerance).
write swapSimpleMode(address,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes,bytes)
Gas-optimised swap path the API may encode instead of swap(): (address caller, SwapDescriptionV2 desc, bytes executorData, bytes clientData). ERC-20 input only (not payable). Use the API calldata as-is; whichever function the API chose is already encoded in `data`.
write swapGeneric((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Generic-executor variant with the same tuple as swap(). Only used when the API encodes it.
read WETH()
Wrapped native token address used by the router on this chain.
read isWhitelist(address)
Whether an executor/target is whitelisted by the router owner (only whitelisted executors can be called).
read owner()
Router owner (KyberSwap admin) who controls the executor whitelist and rescueFunds.
MetaAggregationRouterV2router on arbitrum0x6131B5fae19EA4f9D964eAc0408E4408b66337b5
write swap((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Main swap entry. One tuple: (address callTarget, address approveTarget, bytes targetData, SwapDescriptionV2 desc, bytes clientData), where desc = (address srcToken, address dstToken, address[] srcReceivers, uint256[] srcAmounts, address[] feeReceivers, uint256[] feeAmounts, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit). Returns (uint256 returnAmount, uint256 gasUsed). Do not encode by hand: send the `data` returned by POST /{chain}/api/v1/route/build as the tx calldata to this router, with value = `transactionValue` (non-zero only when selling the native token, 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE). Reverts if output < minReturnAmount (set from slippageTolerance).
write swapSimpleMode(address,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes,bytes)
Gas-optimised swap path the API may encode instead of swap(): (address caller, SwapDescriptionV2 desc, bytes executorData, bytes clientData). ERC-20 input only (not payable). Use the API calldata as-is; whichever function the API chose is already encoded in `data`.
write swapGeneric((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Generic-executor variant with the same tuple as swap(). Only used when the API encodes it.
read WETH()
Wrapped native token address used by the router on this chain.
read isWhitelist(address)
Whether an executor/target is whitelisted by the router owner (only whitelisted executors can be called).
read owner()
Router owner (KyberSwap admin) who controls the executor whitelist and rescueFunds.
MetaAggregationRouterV2router on polygon0x6131B5fae19EA4f9D964eAc0408E4408b66337b5
write swap((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Main swap entry. One tuple: (address callTarget, address approveTarget, bytes targetData, SwapDescriptionV2 desc, bytes clientData), where desc = (address srcToken, address dstToken, address[] srcReceivers, uint256[] srcAmounts, address[] feeReceivers, uint256[] feeAmounts, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit). Returns (uint256 returnAmount, uint256 gasUsed). Do not encode by hand: send the `data` returned by POST /{chain}/api/v1/route/build as the tx calldata to this router, with value = `transactionValue` (non-zero only when selling the native token, 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE). Reverts if output < minReturnAmount (set from slippageTolerance).
write swapSimpleMode(address,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes,bytes)
Gas-optimised swap path the API may encode instead of swap(): (address caller, SwapDescriptionV2 desc, bytes executorData, bytes clientData). ERC-20 input only (not payable). Use the API calldata as-is; whichever function the API chose is already encoded in `data`.
write swapGeneric((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Generic-executor variant with the same tuple as swap(). Only used when the API encodes it.
read WETH()
Wrapped native token address used by the router on this chain.
read isWhitelist(address)
Whether an executor/target is whitelisted by the router owner (only whitelisted executors can be called).
read owner()
Router owner (KyberSwap admin) who controls the executor whitelist and rescueFunds.
MetaAggregationRouterV2router on optimism0x6131B5fae19EA4f9D964eAc0408E4408b66337b5
write swap((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Main swap entry. One tuple: (address callTarget, address approveTarget, bytes targetData, SwapDescriptionV2 desc, bytes clientData), where desc = (address srcToken, address dstToken, address[] srcReceivers, uint256[] srcAmounts, address[] feeReceivers, uint256[] feeAmounts, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit). Returns (uint256 returnAmount, uint256 gasUsed). Do not encode by hand: send the `data` returned by POST /{chain}/api/v1/route/build as the tx calldata to this router, with value = `transactionValue` (non-zero only when selling the native token, 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE). Reverts if output < minReturnAmount (set from slippageTolerance).
write swapSimpleMode(address,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes,bytes)
Gas-optimised swap path the API may encode instead of swap(): (address caller, SwapDescriptionV2 desc, bytes executorData, bytes clientData). ERC-20 input only (not payable). Use the API calldata as-is; whichever function the API chose is already encoded in `data`.
write swapGeneric((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Generic-executor variant with the same tuple as swap(). Only used when the API encodes it.
read WETH()
Wrapped native token address used by the router on this chain.
read isWhitelist(address)
Whether an executor/target is whitelisted by the router owner (only whitelisted executors can be called).
read owner()
Router owner (KyberSwap admin) who controls the executor whitelist and rescueFunds.
MetaAggregationRouterV2router on avalanche0x6131B5fae19EA4f9D964eAc0408E4408b66337b5
write swap((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Main swap entry. One tuple: (address callTarget, address approveTarget, bytes targetData, SwapDescriptionV2 desc, bytes clientData), where desc = (address srcToken, address dstToken, address[] srcReceivers, uint256[] srcAmounts, address[] feeReceivers, uint256[] feeAmounts, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit). Returns (uint256 returnAmount, uint256 gasUsed). Do not encode by hand: send the `data` returned by POST /{chain}/api/v1/route/build as the tx calldata to this router, with value = `transactionValue` (non-zero only when selling the native token, 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE). Reverts if output < minReturnAmount (set from slippageTolerance).
write swapSimpleMode(address,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes,bytes)
Gas-optimised swap path the API may encode instead of swap(): (address caller, SwapDescriptionV2 desc, bytes executorData, bytes clientData). ERC-20 input only (not payable). Use the API calldata as-is; whichever function the API chose is already encoded in `data`.
write swapGeneric((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Generic-executor variant with the same tuple as swap(). Only used when the API encodes it.
read WETH()
Wrapped native token address used by the router on this chain.
read isWhitelist(address)
Whether an executor/target is whitelisted by the router owner (only whitelisted executors can be called).
read owner()
Router owner (KyberSwap admin) who controls the executor whitelist and rescueFunds.
MetaAggregationRouterV2router on base0x6131B5fae19EA4f9D964eAc0408E4408b66337b5
write swap((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Main swap entry. One tuple: (address callTarget, address approveTarget, bytes targetData, SwapDescriptionV2 desc, bytes clientData), where desc = (address srcToken, address dstToken, address[] srcReceivers, uint256[] srcAmounts, address[] feeReceivers, uint256[] feeAmounts, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit). Returns (uint256 returnAmount, uint256 gasUsed). Do not encode by hand: send the `data` returned by POST /{chain}/api/v1/route/build as the tx calldata to this router, with value = `transactionValue` (non-zero only when selling the native token, 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE). Reverts if output < minReturnAmount (set from slippageTolerance).
write swapSimpleMode(address,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes,bytes)
Gas-optimised swap path the API may encode instead of swap(): (address caller, SwapDescriptionV2 desc, bytes executorData, bytes clientData). ERC-20 input only (not payable). Use the API calldata as-is; whichever function the API chose is already encoded in `data`.
write swapGeneric((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Generic-executor variant with the same tuple as swap(). Only used when the API encodes it.
read WETH()
Wrapped native token address used by the router on this chain.
read isWhitelist(address)
Whether an executor/target is whitelisted by the router owner (only whitelisted executors can be called).
read owner()
Router owner (KyberSwap admin) who controls the executor whitelist and rescueFunds.
MetaAggregationRouterV2router on linea0x6131B5fae19EA4f9D964eAc0408E4408b66337b5
write swap((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Main swap entry. One tuple: (address callTarget, address approveTarget, bytes targetData, SwapDescriptionV2 desc, bytes clientData), where desc = (address srcToken, address dstToken, address[] srcReceivers, uint256[] srcAmounts, address[] feeReceivers, uint256[] feeAmounts, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit). Returns (uint256 returnAmount, uint256 gasUsed). Do not encode by hand: send the `data` returned by POST /{chain}/api/v1/route/build as the tx calldata to this router, with value = `transactionValue` (non-zero only when selling the native token, 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE). Reverts if output < minReturnAmount (set from slippageTolerance).
write swapSimpleMode(address,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes,bytes)
Gas-optimised swap path the API may encode instead of swap(): (address caller, SwapDescriptionV2 desc, bytes executorData, bytes clientData). ERC-20 input only (not payable). Use the API calldata as-is; whichever function the API chose is already encoded in `data`.
write swapGeneric((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Generic-executor variant with the same tuple as swap(). Only used when the API encodes it.
read WETH()
Wrapped native token address used by the router on this chain.
read isWhitelist(address)
Whether an executor/target is whitelisted by the router owner (only whitelisted executors can be called).
read owner()
Router owner (KyberSwap admin) who controls the executor whitelist and rescueFunds.
MetaAggregationRouterV2router on sonic0x6131B5fae19EA4f9D964eAc0408E4408b66337b5
write swap((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Main swap entry. One tuple: (address callTarget, address approveTarget, bytes targetData, SwapDescriptionV2 desc, bytes clientData), where desc = (address srcToken, address dstToken, address[] srcReceivers, uint256[] srcAmounts, address[] feeReceivers, uint256[] feeAmounts, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit). Returns (uint256 returnAmount, uint256 gasUsed). Do not encode by hand: send the `data` returned by POST /{chain}/api/v1/route/build as the tx calldata to this router, with value = `transactionValue` (non-zero only when selling the native token, 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE). Reverts if output < minReturnAmount (set from slippageTolerance).
write swapSimpleMode(address,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes,bytes)
Gas-optimised swap path the API may encode instead of swap(): (address caller, SwapDescriptionV2 desc, bytes executorData, bytes clientData). ERC-20 input only (not payable). Use the API calldata as-is; whichever function the API chose is already encoded in `data`.
write swapGeneric((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Generic-executor variant with the same tuple as swap(). Only used when the API encodes it.
read WETH()
Wrapped native token address used by the router on this chain.
read isWhitelist(address)
Whether an executor/target is whitelisted by the router owner (only whitelisted executors can be called).
read owner()
Router owner (KyberSwap admin) who controls the executor whitelist and rescueFunds.
MetaAggregationRouterV2router on unichain0x6131B5fae19EA4f9D964eAc0408E4408b66337b5
write swap((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Main swap entry. One tuple: (address callTarget, address approveTarget, bytes targetData, SwapDescriptionV2 desc, bytes clientData), where desc = (address srcToken, address dstToken, address[] srcReceivers, uint256[] srcAmounts, address[] feeReceivers, uint256[] feeAmounts, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit). Returns (uint256 returnAmount, uint256 gasUsed). Do not encode by hand: send the `data` returned by POST /{chain}/api/v1/route/build as the tx calldata to this router, with value = `transactionValue` (non-zero only when selling the native token, 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE). Reverts if output < minReturnAmount (set from slippageTolerance).
write swapSimpleMode(address,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes,bytes)
Gas-optimised swap path the API may encode instead of swap(): (address caller, SwapDescriptionV2 desc, bytes executorData, bytes clientData). ERC-20 input only (not payable). Use the API calldata as-is; whichever function the API chose is already encoded in `data`.
write swapGeneric((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Generic-executor variant with the same tuple as swap(). Only used when the API encodes it.
read WETH()
Wrapped native token address used by the router on this chain.
read isWhitelist(address)
Whether an executor/target is whitelisted by the router owner (only whitelisted executors can be called).
read owner()
Router owner (KyberSwap admin) who controls the executor whitelist and rescueFunds.
MetaAggregationRouterV2router on hyperevm0x6131B5fae19EA4f9D964eAc0408E4408b66337b5
write swap((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Main swap entry. One tuple: (address callTarget, address approveTarget, bytes targetData, SwapDescriptionV2 desc, bytes clientData), where desc = (address srcToken, address dstToken, address[] srcReceivers, uint256[] srcAmounts, address[] feeReceivers, uint256[] feeAmounts, address dstReceiver, uint256 amount, uint256 minReturnAmount, uint256 flags, bytes permit). Returns (uint256 returnAmount, uint256 gasUsed). Do not encode by hand: send the `data` returned by POST /{chain}/api/v1/route/build as the tx calldata to this router, with value = `transactionValue` (non-zero only when selling the native token, 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE). Reverts if output < minReturnAmount (set from slippageTolerance).
write swapSimpleMode(address,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes,bytes)
Gas-optimised swap path the API may encode instead of swap(): (address caller, SwapDescriptionV2 desc, bytes executorData, bytes clientData). ERC-20 input only (not payable). Use the API calldata as-is; whichever function the API chose is already encoded in `data`.
write swapGeneric((address,address,bytes,(address,address,address[],uint256[],address[],uint256[],address,uint256,uint256,uint256,bytes),bytes))
Generic-executor variant with the same tuple as swap(). Only used when the API encodes it.
read WETH()
Wrapped native token address used by the router on this chain.
read isWhitelist(address)
Whether an executor/target is whitelisted by the router owner (only whitelisted executors can be called).
read owner()
Router owner (KyberSwap admin) who controls the executor whitelist and rescueFunds.
KSAggregationRouterV3router on ethereum0x6868D319c8c9A78F7d39DC3602C5c917315132D7
write swap((address[],uint256[],(bytes,address[],uint256[],address[],uint256[])[],address[],(uint256,address[],uint256[])[],bytes,address,bytes,address,uint256,bytes))
Newer multi-input/multi-output swap. One tuple: (address[] inputTokens, uint256[] inputAmounts, (bytes permitData, address[] feeRecipients, uint256[] fees, address[] targets, uint256[] amounts)[] inputData, address[] outputTokens, (uint256 minAmount, address[] feeRecipients, uint256[] fees)[] outputData, bytes permit2Data, address executor, bytes executorData, address recipient, uint256 deadline, bytes clientData). Returns (uint256[] outputAmounts, uint256 gasUsed). Only send calldata produced by the Kyber API for this router (i.e. when the API's routerAddress is this contract).
read PERMIT2()
Permit2 contract this router accepts signed allowances from.
read paused()
True if the router is paused (swaps revert).
read owner()
Router owner.
KSAggregationRouterV3router on bsc0x6868D319c8c9A78F7d39DC3602C5c917315132D7
write swap((address[],uint256[],(bytes,address[],uint256[],address[],uint256[])[],address[],(uint256,address[],uint256[])[],bytes,address,bytes,address,uint256,bytes))
Newer multi-input/multi-output swap. One tuple: (address[] inputTokens, uint256[] inputAmounts, (bytes permitData, address[] feeRecipients, uint256[] fees, address[] targets, uint256[] amounts)[] inputData, address[] outputTokens, (uint256 minAmount, address[] feeRecipients, uint256[] fees)[] outputData, bytes permit2Data, address executor, bytes executorData, address recipient, uint256 deadline, bytes clientData). Returns (uint256[] outputAmounts, uint256 gasUsed). Only send calldata produced by the Kyber API for this router (i.e. when the API's routerAddress is this contract).
read PERMIT2()
Permit2 contract this router accepts signed allowances from.
read paused()
True if the router is paused (swaps revert).
read owner()
Router owner.
KSAggregationRouterV3router on base0x6868D319c8c9A78F7d39DC3602C5c917315132D7
write swap((address[],uint256[],(bytes,address[],uint256[],address[],uint256[])[],address[],(uint256,address[],uint256[])[],bytes,address,bytes,address,uint256,bytes))
Newer multi-input/multi-output swap. One tuple: (address[] inputTokens, uint256[] inputAmounts, (bytes permitData, address[] feeRecipients, uint256[] fees, address[] targets, uint256[] amounts)[] inputData, address[] outputTokens, (uint256 minAmount, address[] feeRecipients, uint256[] fees)[] outputData, bytes permit2Data, address executor, bytes executorData, address recipient, uint256 deadline, bytes clientData). Returns (uint256[] outputAmounts, uint256 gasUsed). Only send calldata produced by the Kyber API for this router (i.e. when the API's routerAddress is this contract).
read PERMIT2()
Permit2 contract this router accepts signed allowances from.
read paused()
True if the router is paused (swaps revert).
read owner()
Router owner.