Using a DEX aggregator adds a router contract to the smart contract risk of a direct swap. That extra exposure is usually limited by what you approve for the router to spend. The liquidity pools in your chosen route carry their own risk either way.
How an aggregator swap works
Say you want to swap USDC for ETH. The aggregator finds a route, then asks you to approve a spender contract for USDC. You sign a swap that calls the router; the router uses your allowance to trade through the selected pools. The route executes in one transaction. If the ETH received is below your stated minimum, the swap reverts.
-
Direct swap: A Uniswap router sends the trade to its pool. You rely on that router and pool.
-
Aggregator route: The aggregator router calls a pool on your behalf. It adds its own contract risk; using the same pool leaves that pool’s risk in place.
-
Split route: The router divides a larger trade among pools when the improved output outweighs extra gas. More pools mean more pool contracts involved in that transaction.
Routers normally hold no user balance between swaps. The lasting exposure is the allowance in your wallet: a router flaw could let someone spend approved tokens later, up to the remaining cap. An exact approval for one swap is normally used up by that swap. An unlimited approval can also apply to tokens deposited into the wallet afterward. If a swap fails, its separately submitted approval can remain active.
Related questions
Is KyberSwap safe after the hack?
KyberSwap’s November 2023 exploit involved a rounding flaw in KyberSwap Elastic pool math, according to its incident report. The affected contracts were pools, not the aggregator router. That distinction matters when judging a swap route: inspect its pools as well as the router you approve.
Are aggregator approvals riskier than DEX approvals?
Aggregator approvals work like direct DEX approvals: the spender contract and allowance amount determine what can be reached. A standing unlimited allowance to either kind of router exposes later deposits of that token if the spender becomes exploitable. Compare the final output after gas and the pools used before accepting the extra router exposure.
The KyberSwap Aggregator searches supported liquidity sources for swap routes. For a worthwhile route, approve only the input amount and revoke old allowances; that spares later deposits from a forgotten router permission.
Questions to ask next
Are aggregator routers audited?
Audit coverage depends on the router and version. For 1inch, ParaSwap or any other aggregator, match the published audit to the contract you will use and check whether that contract can be upgraded.
Should small trades skip the aggregator?
Small trades may get a better final amount from a direct pool when an aggregator’s extra gas costs more than its quoted improvement. Compare output after gas, not the displayed exchange rate alone.
How do I check which contract I approved?
Read the spender address, token, network and allowance in your approval transaction or an allowance viewer. revoke.cash shows active approvals and lets you reduce or revoke them.
Does a wallet simulation catch malicious routes?
A wallet simulation previews likely balance changes in the transaction you are signing. It may miss later use of a standing allowance or behavior that differs during execution, as MetaMask explains. Inspect the spender and approval cap separately.