Order Flow

*GOEMON Architecture

GOEMON workflow is built on the principle that users should simply declare their desired outcomes and leave the intricate transaction orchestration to the system. In technical terms, the protocol translates high-level signed intents into an optimized, atomic on‑chain transaction. This section details the end‑to‑end flow of the system and the technical benefits of this declarative approach.

Detailed End‑to‑End Flow

  1. Intent Submission Users specify their desired operation by signing a message (e.g., “buy 100 tokens if the price is ≤ $1”), adhering to EIP-7521 for structured, secure, and interoperable intents.

  2. Batch Aggregation

    • Standardization: Intents are standardized to ensure security and interoperability.

    • Grouping: Intents are collected until a predefined batch size is reached, enhancing privacy and liquidity through aggregation.

  3. Solver Optimization

    • Intra‑Batch Matching: Intelligent solvers find optimal matches within the batch to minimize gas fees and latency.

    • External Liquidity Integration: If no match is found, solvers dynamically query on-chain and off-chain liquidity sources.

  4. Adapter Framework Integration

    • Algorithmic Processing: Custom algorithms ensure efficient matching and optimization with minimal computational overhead.

    • Protocol Bridging: The framework integrates diverse DeFi/CeFi protocols, using standardized APIs to normalize data and incorporate market insights.

  5. Execution Engine Assembly

    • Atomic Transaction Construction: Optimized plans are compiled into a single atomic transaction, ensuring all operations execute seamlessly or revert together.

    • Gas Optimization Techniques: Engine consolidates actions to reduce gas usage and transaction fees.

  6. On‑Chain Transaction Execution

    • Submission: The engine executes consolidated actions on-chain into one atomic transaction to minimize gas usage and transaction fees, finalizing the process efficiently.

    • Verification & Confirmation: Engine consolidates actions to reduce gas usage and transaction fees.

Benefits of the Declarative Approach

Last updated