Order Flow

The TETRICS workflow operates on the premise that users only need to specify their desired outcomes, allowing the system to handle the complex transaction orchestration. Technically, this protocol converts high-level signed intents into optimized, atomic on-chain transactions. In its initial version (V0), this is achieved through a relayer model, as illustrated below. This section outlines the complete process of the system and highlights the technical advantages of this declarative approach.

Detailed End‑to‑End Flow

Phase 1: Validation

  1. Composition End user(exchanges/individual users) composes the know hows of collateral.

  2. Parameter Validation The SDK validates using API and JSON protocol configurations. A generic validator confirms all parameters.

Phase 2: Permit2 Signing

  1. Batch Payload Preparation The API prepares the Permit2 batch payload.

  2. Signature Collection The user signs an EIP-712 message for gasless approval.

Phase 3: Ethereum Execution

  1. Token Transfer Permit2 transfers tokens from the user to the executor.

  2. Stake ETH with Lido Stake ETH to receive stETH.

  3. Wrap stETH to wstETH Wrap stETH to obtain wstETH.

  4. Supply Collateral to Morpho Supply wstETH as collateral.

  5. Borrow USDC from Morpho Borrow USDC.

  6. Bridge USDC with Across Bridge USDC to Hyperliquid.

Phase 4: Cross-Chain Bridge

  1. Relayer Processing Across relayers process the bridge operation.

  2. USDC Unlocking USDC is unlocked on Hyperliquid.

Phase 5: Hyperliquid Execution

  1. Supply USDC to HyperLend Supply USDC to earn yield.

Phase 6: Receipt Aggregation

  1. Transaction Receipt Collection The API collects all transaction receipts.

  2. Receipt Return The details are returned to the SDK, frontend, and user.

Phase 7: Error Handling

  1. Execution Monitoring If any action fails, execution halts, returning partial results with error information.

Last updated