Application Architecture
Last updated
Last updated
The system consists of two core layers:
Application Layer Processes incoming requests, decides actions, triggers swaps, and handles interactions with the database.
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.
Letβs say a user sends a command to swap 25% of their USDC to MON tokens:
The process goes like this:
The command reaches the Application Layer.
The system fetches relevant user settings (e.g., slippage tolerance, wallet info).
The encrypted private key is decrypted only in memory using AES-256.
A transaction is sent directly to the Monad EVM smart contract.
The result (transaction hash) is sent back via Telegram.