# Real-Time On-Chain Execution

## Instant finality with near-zero latency

Liqui executes all trades, orders, and contract interactions natively on-chain - with no centralized order matching or off-chain intermediaries.

{% hint style="info" %}
Powered by the high-speed MegaETH infrastructure, transactions reach instant finality, enabling sub-second DeFi performance with full transparency and verifiability.
{% endhint %}

## How It Works

### Native Execution Layer

All core logic - including spot trading, margin, Launchpad participation, and staking - is encoded directly into smart contracts on MegaETH and executed in real time.

* No delays from centralized relayers
* Every order = 1 on-chain transaction
* MegaETH finalizes blocks in milliseconds

### Instant Finality within Network

* Once a trade is submitted, it is confirmed, settled, and irreversible in under 1 second.
* Protected from pre-trade exploitation
* Transactions are final and cannot be reverted post-confirmation
* Execution with deterministic, predictable results

### Minimal Latency

**Average transaction latency remains under 10ms, achieved through:**

* L2-native execution
* Local node-level optimization
* Offloaded computation via the MegaETH VM

{% hint style="info" %}
Multi-step orders - such as margin trades, liquidity routing, and LP updates - are composed into a single atomic transaction, executed and finalized as one.
{% endhint %}
