LogoLogo
Go to Website
  • Welcome to MoonadSwap
  • βš™οΈ Core Concepts
    • How MoonadSwap Works
    • Application Architecture
  • SECURITY
    • Key Management & Encryption
    • Access Control
  • PERFORMANCE & TECHNOLOGY
    • Concurrent Processing
    • The Role of Go (Golang)
Powered by GitBook

Twitter/X

  • Go to Twitter/X
On this page
  • Architecture Diagram
  • 🧠 Application Architecture
  • πŸ”„ Example Workflow
  1. βš™οΈ Core Concepts

Application Architecture

PreviousHow MoonadSwap WorksNextKey Management & Encryption

Last updated 5 days ago

Architecture Diagram

🧠 Application Architecture

The system consists of two core layers:

  1. Application Layer Processes incoming requests, decides actions, triggers swaps, and handles interactions with the database.

  2. Database Layer Stores encrypted user data like preferences, wallet info, and swap history.

When a user sends a swap request via Telegram, the Application Layer processes the command, retrieves necessary user data, and securely performs the swap.

πŸ”„ Example Workflow

Let’s say a user sends a command to swap 25% of their USDC to MON tokens:

The process goes like this:

  1. The command reaches the Application Layer.

  2. The system fetches relevant user settings (e.g., slippage tolerance, wallet info).

  3. The encrypted private key is decrypted only in memory using AES-256.

  4. A transaction is sent directly to the Monad EVM smart contract.

  5. The result (transaction hash) is sent back via Telegram.