Design Liquidation Addresses That Auto-Convert Stablecoins to Fiat

Last updated: November 29, 2026

Quick Overview

Design the system behind a liquidation address: a per-customer deposit address on several chains where any supported stablecoin received is detected, confirmed, converted and paid out automatically to the customer's bank account or another wallet.

Bridge
System Design
Software Engineer
Bridge
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the system behind a liquidation address: a per-customer deposit address on several chains where any supported stablecoin received is detected, confirmed, converted and paid out automatically to the customer's bank account or another wallet.

Liquidation addresses are a core Bridge orchestration primitive: a customer's counterparty just sends USDC and dollars land in a bank account. The interviewer looks for end-to-end ownership across chain ingestion, ledgering, compliance, treasury and payout rails, with correctness under partial failure as the main theme.

What the Interviewer Expects
  • Break the flow into ingestion, confirmation, ledger, compliance, conversion and payout stages with clear state
  • Make every stage idempotent and keyed by the on-chain log
  • Ledger every movement and reconcile against chains and banks
  • Place sanctions and risk screening before funds leave
  • Discuss treasury: sweeping, hot versus cold wallets, and liquidity for payouts
  • Explain what happens when the payout rail rejects or returns funds
Key Topics to Cover
payment orchestration
blockchain ingestion
ledgering
compliance screening
treasury management
workflow state
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you handle a deposit in a token or chain the address was not configured for?
  • How do you generate addresses for millions of customers without managing millions of keys by hand?
  • What latency can you promise for USDC on Solana to an ACH payout, and where does time go?
  • How would you support a payout that should be split between two destinations?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: create addresses per customer and chain, detect deposits of supported tokens, wait for finality, screen, convert to fiat (or another token), pay out to a configured destination, and notify...

High-Level Design
  1. Address service derives addresses from an HD or MPC wallet per chain and maps them to customer and destination config. 2) Chain indexers per chain read blocks from our own nodes plus a provider, de...

Submit Your Answer
Markdown supported

Related Questions