# Background

## Background

Somnex is the native, one-stop DeFi platform on Somnia—combining a best-price swap aggregator, perpetuals, a multi-strategy liquidity layer (V2, V3, and single-sided perp pools), and a one-click meme launchpad.

## Why Somnex exists

* DeFi is fragmented: users hop between apps for swaps, perps, and token launches.
* Fragmentation leads to worse execution, idle capital, and poor UX.
* Somnex unifies the core flows on a single, fast L1 (Somnia).

## Somnia Foundation

Somnia is a high-performance, EVM-compatible Layer 1 with sub-second finality and a stated capability of 1,000,000+ TPS—built for real-time, fully on-chain apps (games, social, DeFi).

## High-level architecture

* **SpotX Aggregator:** indexes liquidity from Somnex V2/V3, QuickSwap, Somnia Exchange, etc., then performs smart routing for the best total execution (price + slippage + gas).
* **Perpetuals**: on-chain perps for 50+ markets with up to 50× leverage.
* **Liquidity Layer**: V2 (volatile AMM) , and Perp Pools (SPLP: single-sided USDC).
* **Meme Launchpad**: one-click token creation (name/ticker/logo), bonding-curve sale, auto-listing on Somnex Swap.

<figure><img src="/files/nmeazDjmBgyAVhzxRFdF" alt=""><figcaption><p><em>Somnex Aggregator Flywheel</em></p></figcaption></figure>

<figure><img src="/files/EcBwt2ncZpTDkIVkq6zb" alt=""><figcaption><p><em>Somnex Perpetual Trade Flywheel</em></p></figcaption></figure>


---

# 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://docs.somnex.xyz/overview/background.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.
