Skip to content

Tokenfon DEX Project

What is Tokenfon DEX?

Tokenfon DEX is a decentralized exchange platform designed to provide seamless, secure, and efficient cryptocurrency trading. The platform focuses on pool management and token swapping for trading pairs. Developed by Cerratech for Tokenfon, the DEX incorporates Tokenfon's branding and specific operational requirements.

The platform is based on Uniswap V2 architecture, with unnecessary features removed to retain only the Pool and Swap functionalities. The user interface has been polished to align with Tokenfon's company branding.

What Does It Bring?

Core Functionalities

  • Token Swapping: Facilitates decentralized token swaps between trading pairs
  • Liquidity Pool Management: Enables users to provide liquidity and manage pools
  • Brand Alignment: User-friendly interface designed specifically for Tokenfon's branding
  • Direct Smart Contract Interaction: Fast and efficient trading interactions directly with smart contracts

Technical Capabilities

  • Multi-Platform Support: Web application development for desktop and mobile browsers
  • Advanced Charting: Candlestick and legend charts with comprehensive time range support
  • Data Optimization: Service layer to optimize subgraph data handling and reduce request overhead
  • Ethereum Integration: Full integration with Ethereum blockchain infrastructure

How It Works

Architecture Components

Smart Contract Layer

  • Based on Uniswap V2: Proven architecture with unnecessary features removed
  • Solidity 0.8.21: Legacy smart contracts upgraded for enhanced functionality and security
  • Pool and Swap Focus: Concentrated on core liquidity pool and token swap functionalities

Data Management

  • The Graph's Subgraph: Blockchain data tracking and indexing
  • Swap Event Monitoring: Subgraph data generated based on swap events, reflecting user activity
  • TypeScript Service: Optimizes subgraph requests by addressing potential time gaps and reducing direct queries
  • Request Routing: Frontend requests routed through the service for consistent and efficient data handling

Frontend Application

  • React.js Framework: Web application built with React.js
  • Responsive Design: Optimized for both desktop and mobile browsers
  • Tokenfon Branding: Interface polished to align with Tokenfon's company branding

Charting System

The platform includes comprehensive charting functionality with the following supported time ranges:

  • 5m (5 minutes)
  • 15m (15 minutes)
  • 1h (1 hour)
  • 4h (4 hours)
  • 1D (1 day)
  • 1W (1 week)
  • 1M (1 month)
  • 1Y (1 year)

Charts feature candlestick and legend visualization, powered by The Graph's Subgraph data.

Technical Implementation

Technology Stack

  • Smart Contracts: Solidity (upgraded to version 0.8.21)
  • Backend: TypeScript for backend development
  • Frontend: React.js framework
  • Data Indexing: The Graph's Subgraph for blockchain data tracking
  • SDK: Privately published to NPM and configured for Tokenfon Testnet Chain

Deployment Infrastructure

  • Frontend: Cloudflare Pages for frontend deployment
  • Backend: Google Cloud deployment with PM2 for app service management

Key Features

  • Uniswap V2 Base: Built on proven decentralized exchange architecture
  • Custom Branding: Tailored interface matching Tokenfon's visual identity
  • Testnet Configuration: SDKs specifically configured for Tokenfon Testnet Chain
  • Optimized Data Flow: Custom service layer for efficient subgraph data handling

Project Scope & Limitations

Included Features

  • Smart contract development for liquidity pool and swap functionalities
  • Integration with Ethereum blockchain
  • Web application development for desktop and mobile browsers
  • Implementation of charting features with candlestick and legend charts
  • Service layer to optimize subgraph data handling and reduce request overhead

Excluded Features

  • Feedback processes for user testing or iterations
  • Support for automated trading APIs or third-party integrations
  • Development of native mobile applications for Android and iOS
  • Support for non-crypto assets (e.g., fiat currencies)
  • Marketing and community engagement activities

Project Assumptions

  • Blockchain networks integrated into the platform remain stable and operational
  • Smart contract audit process was skipped with Tokenfon's approval, relying on in-house quality assurance

This DEX implementation provides Tokenfon with a focused, branded decentralized exchange solution built on proven technology while maintaining the specific operational requirements and visual identity of the Tokenfon ecosystem.