Sequence Executor

The Sequence Executor is the core transaction orchestration engine of the Brava protocol. It enables the execution of sophisticated DeFi operations through a secure, standardised interface whilst maintaining user custody through their Smart Safe Account.

Purpose and Functionality

The Sequence Executor allows users to execute a series of actions (called a "sequence") in a flexible and gas-efficient manner. It leverages delegate calls to maintain the context of the user's wallet throughout the execution process, enabling Brava to offer sophisticated DeFi logic without taking custody of user funds.

Key functionalities include:

  • Executing customizable sequences of actions

  • Supporting manual execution through a user's Safe wallet

  • Providing a standardized interface for various DeFi actions

  • Enabling gas-efficient execution of multiple actions in a single transaction

  • Maintaining user fund custody within their Safe wallet at all times

The system offers great flexibility, allowing users to combine pre-defined actions in any order required to achieve their desired strategy. While the individual actions are pre-defined, the sequence order and input parameters are fully customizable to meet specific user needs.

Security Architecture

The Sequence Executor implements multiple security layers:

  1. Action Registry

    • Only approved actions can be executed

    • Actions are referenced by ID rather than address

    • Action addresses are verified through AdminVault

  2. Immutable Configuration

    • AdminVault connection is fixed at deployment

    • Core security parameters cannot be modified

  3. Standardised Execution

    • Consistent interface for all DeFi operations

    • Predictable execution patterns

    • Verified action sequences

Integration

The Sequence Executor works in concert with the BravaGuard and Transaction Registry to form a comprehensive security framework, ensuring all operations remain within the protocol's controlled environment whilst enabling sophisticated DeFi strategies.

Last updated