Technical Overview
Architecture
GammaSwap utilizes an architecture similar to how an L2 operates with an L1. The protocol matches orders in an off-chain private ledger where matched orders are aggregated to be sent in batch to the public settlement chain for finality. This two step system leverages off-chain matching for speed and on chain settlement for security and transparency. Order batches are submitted to Base at predetermined intervals ranging from 10 seconds to a few minutes, depending on Base network congestion. Orders are filled based on time-price priority.
Given V2 is a margin based exchange, a user can trade against themselves to close or flip an order's direction. This architecture also opens up cross margining opportunities for higher capital efficiency in the future.
Advantages
Current latency expectations are around 100-200ms round trip, which if maintained in production, would make GammaSwap V2 the fastest on-chain prediction market.
Most other on-chain prediction markets use a conditional token framework (CTF) where on-chain tokens are minted and burned each epoch. This decreases available liquidity since there's a dependency on minting new liquidity before trading is possible. The margin based architecture allows anyone with USDC in the platform to supply liquidity to the market at any time.
Proximity
The GammaSwap matching engine is located in Singapore which is in the same region as Bybit and near major exchanges like Binance and Hyperliquid in Tokyo. This is an advantage for market makers by reducing latency and improving reaction time.
Last updated