Skip to main content

Protocol Overview

GO Swap is a 100% decentralized exchange built using smart contracts that manage liquidity pools and execute swaps through deterministic pricing formulas.

Core Capabilities

The protocol allows:

  • Permissionless token swaps - Trade any token pair without approval
  • Liquidity pool creation - Create new markets for any token pair
  • Yield generation for liquidity providers
  • Real-time on-chain price discovery - Automated pricing based on supply and demand

The system operates without centralized order books, using an automated liquidity pool model based on the constant product formula.

Architecture

GO Swap consists of four primary layers:

1. Smart Contract Layer

Handles swaps, liquidity, and token interactions on-chain.

  • Core AMM logic
  • Liquidity pool management
  • Token swap execution
  • Event emission for indexing

2. Indexer Layer

Listens to blockchain events and stores historical swap data.

  • Real-time event monitoring
  • Historical data persistence
  • PostgreSQL storage
  • Event broadcasting via SSE

3. API Layer

Provides REST and SSE endpoints for dashboards and integrations.

  • RESTful API for historical queries
  • Server-Sent Events for real-time updates
  • Analytics endpoints
  • Integration-friendly interfaces

4. Frontend Dashboard

A Web3 interface for wallet connection, swaps, and analytics.

  • Wallet integration (MetaMask, WalletConnect)
  • Swap interface
  • Liquidity management
  • Real-time analytics

Design Principles

This architecture ensures:

Scalability - Modular design allows independent scaling of components

Modularity - Each layer can be upgraded without affecting others

Full Decentralization - Smart contracts are immutable and transparent

Developer Friendly - Clear APIs for third-party integrations

Network Deployment

Initial Network: Binance Smart Chain (BSC)

Future Networks:

  • Ethereum
  • Polygon
  • Arbitrum
  • Base

All deployments follow EVM compatibility standards for seamless multi-chain operation.