> For the complete documentation index, see [llms.txt](https://docs.euphoria.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.euphoria.finance/euphoria/architecture-and-technology.md).

# Architecture & Technology

#### Built on MegaETH

Euphoria runs on [MegaETH](https://megaeth.com/), a high-performance EVM-compatible blockchain designed for real-time applications.

We chose MegaETH because Tap Trading depends on speed. Squares update continuously, market makers refresh quotes in real time, and trades need to settle in sub-second windows. MegaETH provides:

* 100k TPS with sub 10-ms blocktimes
* Full EVM compatibility, so contracts are auditable with standard tooling
* Low transaction costs, enabling small trade sizes without prohibitive gas

#### How a Trade Flows

A single tap moves through four parties:

1. **Market makers** provide the live quote shown on your square
2. **You** tap on a square to submit a trade from your wallet
3. **The Euphoria smart contracts** record the trade, hold positions, and handle settlement
4. **Redstone oracle** provides external price data used to validate settlement

#### Redstone Oracle

Euphoria uses a custom Redstone oracle for price validation and settlement.

The oracle provides trusted external market data used to:

* Verify reference market prices
* Determine final trade settlement values
* Ensure pricing integrity independent of Euphoria or market makers

Settlement outcomes are based on objective external data, not prices generated internally by the platform.
