ARCHITECTURE

Components

  • Web App: UI for quotes, orders, and support.

  • CLI App: Terminal UI/client for quotes, orders, tracking, support, and bridge calls.

  • BFF: Validates requests, applies rate limits, caches static data, and calls Wagyu.

  • Telegram Bot: Conversational UI for swaps (create, track, history) backed by BFF endpoints.

  • Workers: Polls order status and drives notifications.

  • DB: Stores tickets, sessions, order references, audit logs.

  • Status Page: Public system health, incidents, and component uptime.

Data Flow (High Level)

1

User requests a quote

User requests a quote in the web app.

2

Web app calls BFF

Web app calls BFF quote endpoint.

3

BFF validates and calls Wagyu

BFF validates input and calls Wagyu API.

4

BFF returns normalized result

BFF returns normalized result to web app.

5

Order creation triggers workers

Order creation triggers worker polling and support logging.