BrainDex Documentation
  • 💡Introduction
    • What is BrainDex?
  • 💁User Guides
    • How to Make a Swap
  • ⚡Protocol Information
    • Contracts
    • Technical Documentation
      • The BrainDex Router
        • Contract Interactions
      • The BrainDex Executor
    • Router Fees
    • Supported Chains and DEXes
    • Audit
  • ❔Faq
    • FAQ
  • 👩‍💻Developer Documentation
    • Your API endpoint
    • BrainDex Integration Quickstart
    • BrainDex API Integration
      • Pathfinder API - Requesting a Route
      • Pathfinder API - the Route Request Response
    • BrainDex Router Interaction
      • Sending a Swap Transaction
    • A Complete Example
Powered by GitBook
On this page
  1. Protocol Information
  2. Technical Documentation

The BrainDex Executor

The BrainDex Executor is a modular, internal contract which contains the on-chain logic for handling swap routes produced by the BrainDex Router. The Executor interprets the swapData component of the Router contract's calldata and routes the swap accordingly.

At the end of the Executor's swap execution, the tokens received are then passed to the Router, which performs final security checks before returning the results of the swap to the caller.

PreviousContract InteractionsNextRouter Fees

Last updated 2 years ago

⚡