System architecture

Ingestion, analysis, execution and settlement across a 4-tier cycle.

6 min read · pre-launch draft
Documentation contents

PrismPerp sits between trade execution and the underlying liquidity, acting as a risk, liquidation-defence and order-routing buffer. It runs a four-tier cycle on every market tick.

ComponentFunctionUpstreamDownstreamLatency
Oracle & pricing feedsAggregate CEX/DEX medians and fundingExternal RPCs, Pyth, ChainlinkRisk engineCritical <100ms
PrismPerp engineDelta exposure, margin tiers, hedge triggersPricing feeds, account stateRouter, margin vaultCritical <50ms
Margin & vault controllerCollateral, maintenance, deposit locksPrismPerp engineLiquidity pools, ledgerHigh <200ms
Execution routerDefensive orders, delta rebalance, tranchesPrismPerp engineOrder books, AMMsHigh <150ms
Event loggerState updates, slippage delta, alertsAll modulesIndexer, dashboardsAsync

Breach path

When position risk crosses a critical band the engine intercepts the standard market stop-out: it posts modular limit tranches to dampen the spike, routes a counter-hedge to return portfolio delta toward neutral, and draws the dynamic buffer before the maintenance margin is touched.

  • Engine and vault interactions are atomic or reentrancy-locked; rapid mark-price volatility must not open a race.
  • If feed latency passes its timeout, the system falls back to conservative max-slippage protection and pauses margin withdrawals until oracles resynchronise.