Aggregators

DEX Aggregators Integration

Overview

This module enables efficient token swaps on decentralized exchanges by integrating multiple DEX aggregators. It optimizes trading routes and provides the best possible rates across various liquidity sources.

Core Components

Supported Aggregators

  • KyberSwap

  • 0x Protocol

  • OpenOcean

  • Odos

  • Magpie

  • OKX

  • Hypersonic

Swap Functionality

  • Token Swaps:

    • Execute trades with optimal routing

    • Support for multiple input/output tokens

    • Automatic best price discovery

    • Full or partial balance swaps

    • Cross-chain compatibility

Features

  • Optimal trade routing across multiple DEXs

  • Best price execution through aggregator comparison

  • Support for multiple blockchain networks

  • Automatic slippage protection

  • Gas-optimized transactions

  • Flexible amount specification (exact amounts or entire balance)

  • Comprehensive error handling

  • Gas estimation and optimization

Chain Support

  • Multiple blockchain networks supported

  • Cross-chain trading capabilities

  • Network-specific optimizations

Example Prompts:

  • "HeyAnon, please use 1000 USDT on Solana to buy 9McvH6w97oewLmPxqQEoHUAv3u5iYMyQ9AeZZhguYf1T"

  • "HeyAnon, please use 1000 USDT to buy ETH on Base with 420% TP, 69% SL"

Last updated