# What is Paraflux?

**Paraflux is the on-chain volatility layer for HyperEVM.**

Trade power perpetuals, variance swaps, and structured vol products — powered by the first fully on-chain realized variance oracle.

> **Status:** Testnet live on HyperEVM (chain 998). Vol oracles running on mainnet (chain 999) across 9 assets. Core trading protocol in final testing.
>
> [Preview App](https://cmyocyte.github.io/paraflux/) · [View Contracts](https://paraflux.gitbook.io/paraflux-docs/reference/addresses) · [SDK Quick Start](https://paraflux.gitbook.io/paraflux-docs/sdk/quickstart)

***

## Why Paraflux?

* **Power Perpetuals** — Squared exposure to any asset. No strikes, no expiry, no fragmentation.
* **Variance Swaps** — Trade realized variance directly. Long or short vol, settled on-chain.
* **On-Chain Vol Oracle** — Realized variance, term structure, vol-of-vol across 9 assets. Any protocol can consume it.
* **LP Vault** — Deposit USDC. Earn trading fees, funding income, and hedged market-making yield.

## Supported Assets

| Asset               | Class    |
| ------------------- | -------- |
| BTC, ETH, SOL, HYPE | Crypto   |
| Gold, Silver        | Metals   |
| XYZ100/Nasdaq, TSLA | Equities |
| EUR/USD             | Forex    |

## Quick Start

### Read volatility data (no wallet needed)

```typescript
import { ParaFluxClient } from '@paraflux/sdk';

const client = new ParaFluxClient({
  chainId: 999,
  rpcUrl: 'https://rpc.hyperliquid.xyz/evm',
});

// Multi-asset volatility surface
const surfaces = await client.getAllVolSurfaces();
for (const [asset, s] of surfaces) {
  console.log(`${asset}: vol=${(s.realizedVol1d * 100).toFixed(1)}%`);
}
```

### Trade

```typescript
const client = new ParaFluxClient({
  chainId: 999,
  rpcUrl: 'https://rpc.hyperliquid.xyz/evm',
  privateKey: '0x...',
});

// Open a long power perp
await client.openPosition({
  isLong: true,
  usdAmount: 1000,
  leverage: 2,
});
```

### Compute Greeks

```typescript
import { math } from '@paraflux/sdk';

const greeks = math.computeAllGreeks(size, spot, sigma, isLong);
// { delta, gamma (constant!), vega, theta, dollarGamma, notional }
```

## Get Started

|                             | Link                                                                             |
| --------------------------- | -------------------------------------------------------------------------------- |
| **Trade now**               | [Launch App](https://cmyocyte.github.io/paraflux/)                               |
| **Understand the protocol** | [Protocol Overview](https://paraflux.gitbook.io/paraflux-docs/protocol/overview) |
| **Build with the SDK**      | [Quick Start](https://paraflux.gitbook.io/paraflux-docs/sdk/quickstart)          |
| **Read vol data**           | [Volatility Data](https://paraflux.gitbook.io/paraflux-docs/sdk/volatility)      |
| **Compute Greeks**          | [Greeks & Risk](https://paraflux.gitbook.io/paraflux-docs/sdk/greeks)            |
| **Common questions**        | [FAQ](https://paraflux.gitbook.io/paraflux-docs/reference/faq)                   |
