DEX Aggregator Trades across multiple EVM-compatible blockchains.
DEX aggregator pools liquidity from various DEXs to offer traders more favorable prices and reduced slippage. In aggregator trades, the swap event compresses the multiple hops a swap may take across multiple DEXs into a single row. For example, the user wanted to swap WETH for USDC, and the swap hops through 2 liquidity pools on Uniswap (WETH > USDT) and Balancer (USDT > USDC), the aggregator_trades
table will contain a single row that indicate a WETH > USDC swap.
EVM-Blockchains Supported: ethereum, polygon, arbitrum, optimism, avalanche, base, bsc, celo, mode, scroll, worldchain, zksync, zora
Projects | Protocols |
---|---|
1inch | 1inch_ar_v2 1inch_ar_v3 1inch_ar_v4 1inch_ar_v5 1inch_ar_v6 1inch_lop_v2 1inch_lop_v3 1inch_lop_v4 |
cow_protocol | cow_protocol |
dodo | dodo_x_v1, dodo_x_v2 |
hashflow | hashflow_x |
kyberswap_aggregator | kyberswap_aggregator_v2 |
okx | okx_ar_v1 |
openocean | openocean_v2 |
paraswap | paraswap_v1 paraswap_v2 paraswap_v3 paraswap_v4 paraswap_v5 |
tokenlon | tokenlon_amm_v2 to]kenlon_pmm tokenlon_amm_v1 tokenlon_rfq_v2 tokenlon_rfq_v1 |
uniswap_x | uniswap_x |
zeroex | zeroex_v4 |
We identify the DEX aggregators and the contract address involved in aggregating dex swaps. From these contracts, we select the relevant event-logs or trace calls that corresponds to an aggregator swap.
The event log or trace is subsequently decoded using the contract's ABI. The decoded fields typically contract the relevant fields that will map to the core dex.aggregator_trades table (namely token amount and address, sold and bought in the swap.). We then label to the resepective project based on the contract address of the aggregator.