System Overview

The FaaSFi Engine

The FaaSFi architecture is designed as a high performance aggregation layer that sits between the end user (Corporate or Retail) and the fragmented liquidity of global prediction markets. It functions as a normalization engine, converting disparate data formats, settlement currencies, and execution protocols into a unified interface.

Logical Architecture Diagram

The system is composed of four primary layers:

  1. The Client Layer (Frontend):

    • Web App (Next.js): The trading terminal for retail users and dashboard for corporate treasurers.

    • Widget SDK: A JavaScript library that allows DAOs to embed FaaSFi governance markets directly into their Snapshot or Tally portals.

  2. The Aggregation Layer (Backend):

    • Data Normalizer: Ingests REST data from Kalshi, Gamma API data from Polymarket, and RPC data from Limitless. It converts all odds into a standardized probability format (0.00 to 1.00).

    • Smart Order Router (SOR): The decision engine that splits large orders across platforms to minimize slippage.

    • Risk Engine: Monitors the "Health Factor" of leveraged positions on Limitless and the collateral requirements for OBCD policies.

  3. The Execution Layer:

    • FIX Gateway: Manages persistent TCP connections to Kalshi for millisecond-level trade execution.

    • EVM Relayer: Manages blockchain transactions for Polymarket (Polygon) and Limitless (Base), handling gas fees and nonces.

  4. The Settlement Layer:

    • FaaSFi Vaults: Smart contracts that hold user collateral and insurance premiums.

    • Sub-Account Ledger: An internal ledger mapping corporate client funds to their respective segregated accounts at regulated brokers.

Last updated