Skip to main content

Architecture & Technical Documents

DocumentDescription
Technical DocumentsServices architecture
App & API Architecture PrototypePages, API endpoints and real-time updates
Smart ContractsOn-chain programs, accounts, instructions and Solana optimisations
Database ModelPostgreSQL schema, Redis live state and ERD
IndexerEvent-driven DB writes, subscription strategy and periodic jobs
Order BookCLOB design, slab allocator and critbit tree
Trading MechanicsOrder types, strategies, account modes, margin, leverage, liquidations, mark price and funding
VaultsVault lifecycle, deposit/withdraw flows, NAV calculation, performance fee, manager and admin operations
BotsLiquidation flow, position monitoring, incentive design and funding settlement
Oracle Market StudyOracle providers, integration and cost breakdown
Fee StructureFee categories, distribution and calculation
User Stories - Prototype (Trading App)Prototype stories for traders and keeper (trading app)
Admin User Stories - Prototype (Backoffice)Prototype stories for the admin backoffice app

Overview

This directory contains the full technical architecture of the protocol, covering on-chain programs, off-chain services, database design and trading mechanics.