# Technology & Security

#### Plasma Chain Performance

The choice of the Plasma Chain is central to the platform's offering:

* Sub-Second Finality: This is crucial for high-leverage trading, ensuring that the price you see is the price you get, with no delayed fills or slippage surprises.
* Zero Gas Fees: The zero-gas infrastructure of Plasma Chain eliminates the cost and complexity of managing gas tokens, simplifying the entire trading process.

PlasmaPerps achieves sub-second latency by **removing the blockchain from the hot path** and treating trades as **signed off-chain intents**. Users sign orders with their wallet and send them via WebSocket to a stateless gateway, which forwards them to a **co-located sequencer + in-memory matching engine cluster**. The sequencer is the single logical ordering service: it timestamps and sequences intents, runs risk checks, and updates an in-memory orderbook and account state (positions, margin, PnL). Because this entire loop runs in RAM with no EVM calls and no disk I/O on the critical path, it can respond with execution reports (fills, partials, updated account state) in a few hundred milliseconds, similar to a traditional CEX matching engine.

On-chain contracts sit on the **settlement path**, not the execution path. The sequencer periodically batches executed trades and state transitions into **compact state commitments** (or rollup-style proofs) and submits them to Plasma Chain settlement contracts. These contracts hold custody of margin collateral, maintain canonical balances and positions, enforce margin and liquidation rules, and update vault/fee/insurance accounting. Because the chain only processes **aggregated batches** instead of per-click transactions, it can provide strong safety and non-custodial guarantees without constraining latency. The combination of (1) **off-chain, in-memory matching and risk**, plus (2) **on-chain batched settlement with contract-controlled custody**, is what allows PlasmaPerps to deliver CEX-like speed while remaining non-custodial.

#### Security and Transparency

PlasmaPerps operates with a commitment to Trust through verification, not promises.

* Non-Custodial: Funds are secured by audited smart contracts, not by any third party.
* Onchain Settlement: All transactions and settlements are verifiable on the blockchain.
* Audits: Our smart contracts have been thoroughly audited by leading security firms in the DeFi space.
* Data Pipeline: We utilize a Hybrid Oracle + RWA (Real World Asset) Data Pipeline. This multi-source mechanism aggregates data from various sources to ensure our prices are resilient against manipulation and highly accurate, especially for RWA markets like stocks and commodities.


---

# 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.plasmaperps.com/technology-and-security.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.
