Protocol Architecture

The infrastructure
behind fair execution.

A full-stack breakdown of the Vantide Protocol — from Solidity contracts on BNB Chain to the React trading interface. Built for transparency, designed for performance.

Solidity BNB Smart Chain Chainlink Oracles Node.js / Golang The Graph React / Next.js vAMM MetaMask · WalletConnect
System Overview

Five-layer architecture.
Every component purpose-built.

Vantide separates execution into distinct layers — each independently optimised, each contributing to a fairer trade for every participant.

Layer 01
Frontend
React / Next.js
TradingView Charts
Ethers.js / Web3.js
MetaMask · WalletConnect
Layer 02
Backend
Node.js / Golang
Order Matching Engine
PostgreSQL
Risk Engine
Price Aggregation
Layer 03
Data Layer
The Graph Protocol
Custom Indexers
Real-time Trade Data
Layer 04
Smart Contracts
Vault
Router
Position Router
Margin Engine
Liquidation Engine
Insurance Fund
vAMM
Layer 05
Oracle + Chain
Chainlink Price Feeds
Mark Price
Index Price
BNB Smart Chain
EVM · Chain 56
Execution Path

How a trade flows through the system.

Every trade follows a deterministic path from wallet submission to on-chain settlement, with each layer handling only what it's optimised for.

01
Wallet Submission
MetaMask or WalletConnect sends signed intent from user wallet
02
Backend Processing
Node.js/Golang engine matches order, runs risk calculations, aggregates price
03
Oracle Validation
Chainlink feeds provide mark price, index price, and liquidation reference
04
Contract Settlement
Vault, Router and Position Router finalize position on BNB Chain
05
Indexed + Displayed
The Graph indexes the state. Custom indexers feed real-time UI via React
Full Stack Breakdown

Every layer, explained.

From smart contract to browser — the complete Vantide technology stack, built for performance and designed for longevity.

Blockchain Layer
Solidity + BNB Smart Chain
All protocol logic is written in Solidity and deployed on BNB Smart Chain — an EVM-compatible network delivering low fees and fast 3-second block times without sacrificing security.
  • EVM compatibility — full Solidity toolchain support
  • ~$0.01–$0.10 per transaction vs Ethereum mainnet
  • 3-second average block time for fast settlement
  • Chain ID: 56 — no bridges, no wrapped assets
Chain 56
Oracle Layer
Chainlink Price Feeds
Vantide uses Chainlink's decentralised oracle network as the single source of truth for all price-dependent operations — protecting against flash loan manipulation and spot price attacks.
  • Index price — aggregated reference across sources
  • Mark price — used for perpetual position valuation
  • Liquidation triggers — oracle-driven, not manipulable
  • Stale price protection + deviation circuit breakers
Chainlink
Core Perp Engine
vAMM + Hybrid Model
Inspired by Perpetual Protocol's virtual AMM design, Vantide's exchange engine provides continuous liquidity without direct asset exposure. A hybrid model optionally combines off-chain matching with on-chain settlement.
  • vAMM — continuous liquidity with no counterparty requirement
  • Optional off-chain order book with on-chain settlement
  • Cross and isolated margin modes
  • Dynamic funding rate aligned with spot price
  • Automated liquidation bots + insurance fund
vAMM
Backend Infrastructure
Node.js / Golang Services
The backend handles compute-intensive off-chain operations — order matching, price aggregation, and risk calculations — enabling fast execution without incurring on-chain gas for every compute step.
  • Node.js or Golang — high-performance service runtime
  • Order matching engine — routes orders before on-chain commit
  • Index price aggregation — multi-source price computation
  • Risk calculations — real-time margin and exposure monitoring
  • PostgreSQL — persistent storage for trades, users, history
PostgreSQL
Data Layer
The Graph + Custom Indexers
On-chain state is indexed via The Graph protocol for efficient querying, supplemented by custom real-time indexers that power the trading UI with live position, volume, and market data.
  • The Graph — query on-chain data via GraphQL subgraphs
  • Custom indexers — real-time trading data, position feeds
  • Event-driven architecture — instant UI updates on state change
  • Historical data — full trade and fee history queryable
The Graph
Frontend + Wallets
React / Next.js + Web3
The Vantide trading interface is built on React/Next.js for a fast, responsive experience. Blockchain interaction uses Ethers.js, with TradingView for professional chart rendering. MetaMask and WalletConnect provide wallet connectivity.
  • React / Next.js — fast, server-side rendered trading dashboard
  • TradingView — professional-grade charting library
  • Ethers.js or Web3.js — EVM wallet and contract interaction
  • MetaMask — browser wallet native support
  • WalletConnect — mobile and hardware wallet support
Next.js
Smart Contracts

Core contracts. Modular design.

Each protocol function is separated into a purpose-specific contract — minimising blast radius, simplifying auditing, and enabling targeted upgrades via governance.

ContractFunctionInteracts WithStatus
VaultUnified liquidity pool — accounting for all positions and LP capitalRouter, Margin Engine, Liquidation EngineCore
RouterOrder intake — validates and routes all incoming trade requestsVault, Oracle, Position RouterCore
Position RouterManages full position lifecycle — open, modify, closeVault, Margin EngineCore
Margin EngineCollateral management, leverage enforcement, cross/isolated marginVault, Liquidation Engine, OracleCore
Liquidation EngineAutomated position resolution when collateral threshold is breachedMargin Engine, Insurance Fund, OracleCore
vAMMVirtual AMM providing continuous liquidity for perpetual marketsPosition Router, Funding RateCore
Funding RateDynamic rate mechanism keeping perp price aligned with spot indexvAMM, Oracle, Position RouterCore
Insurance FundProtocol reserve absorbing losses when liquidation proceeds are insufficientLiquidation Engine, VaultReserve
Audit Commitment

All core contracts will undergo third-party security audits prior to mainnet deployment. Audit reports will be published publicly and linked in the documentation.

Perpetual Engine

vAMM, margin, funding rates, and liquidations.

Virtual AMM (vAMM)

Inspired by Perpetual Protocol, Vantide's vAMM provides continuous, always-available liquidity without requiring a traditional counterparty. The virtual AMM uses a formula to determine price based on position imbalance — enabling trading without directly using pooled assets for directional exposure.

Margin Engine

Supports both cross margin (shared collateral across all positions) and isolated margin (dedicated collateral per position). The engine manages real-time collateral ratio tracking and issues margin calls when positions approach liquidation thresholds.

Hybrid Order Model

Vantide supports an optional hybrid model — off-chain order matching combined with fully on-chain settlement. This gives the speed of a centralised exchange while preserving the trustless settlement guarantee of a DEX.

Funding Rate Mechanism

Funding rates are the primary mechanism that keeps perpetual contract prices anchored to spot. When the perpetual price trades at a premium to spot, longs pay shorts — and vice versa. Rates are calculated dynamically based on the rolling premium, incentivising the market to self-correct continuously.

Liquidation Engine

When a position's collateral falls below the maintenance margin threshold, automated liquidation bots trigger resolution. A portion of the seized collateral goes to the executor bot as incentive; the remainder protects the Insurance Fund and vault LPs.

Insurance Fund

If liquidation proceeds are insufficient to cover losses, the Insurance Fund absorbs the shortfall — protecting LP capital from unexpected losses from undercollateralised positions.

Ready to trade on real infrastructure?

Experience the protocol firsthand. Connect your wallet and execute your first signal-minimized trade on BNB Chain.