# MEV (Maximal Extractable Value)

### MEV Risk in Unified Margin Flows

Tetrics bundles multi-step transactions across chains to deliver a seamless unified-margin experience. However, these complex on-chain interactions naturally introduce MEV (Maximal Extractable Value) exposure — especially during automated cross-chain borrow, repay, and rebalance margin operations  via Hyperliquid Corewriter. MEV Attack risk will increases in high volatility market.

MEV represents the extra profit that can be captured by reordering, including, or excluding transactions within a block. In simpler terms, it’s the potential gain a miner or validator might extract by strategically ordering transactions.&#x20;

TETRICS is designed to mitigate the risks associated with MEV by aggregating intents into batches and using intelligent solvers that optimize execution order, thereby reducing opportunities for front-running or other exploitative behaviors.

### **MEV manipulation Problems**

* *Front-running*: Placing a transaction ahead of a pending transaction to profit from the price movement.
* *Sandwich Attacks*: Inserting transactions both before and after a target transaction, exploiting price changes.
* *Reordering & Insertion*: Manipulating the sequence of transactions to capture arbitrage opportunities.

### **Threat Models**

The risks posed by MEV can be classified as follows:

* *User-Level Risks*: Individual users may experience slippage or higher transaction fees as their orders are exploited by adversaries.
* *Protocol-Level Vulnerabilities*: Aggregated order flows or predictable patterns in transaction ordering can expose the protocol to systemic exploitation.
* *Network-Level Risks*: During periods of high volatility or congestion, the probability of MEV exploitation increases, as attackers are incentivized to rearrange transaction sequences for profit.

### **MEV Protection**

To safeguard user transactions, TETRICS  employs multiple layers of defense:

* *Batching & Aggregation*: By grouping multiple intents together, the protocol obscures individual transaction details, making it harder for malicious actors to target specific orders.
* &#x20;*Solver Optimization*: Solvers analyze batches holistically to determine the most efficient execution paths, further reducing the risk of MEV exploitation.
* *Atomic Execution*: Transactions are executed atomically, ensuring that either all actions within a batch are successfully completed, or none are—this minimizes the impact of potential manipulation.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tetrics.gitbook.io/x/architecture/intent-centric-framework/mev-maximal-extractable-value.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
