Match Cross-Chain Burns To Mints And Flag Stuck Transfers
Last updated: November 29, 2026
Quick Overview
Given burn events from source chains and mint events from destination chains, each identified by (source_domain, nonce), classify transfers as completed, stuck past an SLA, mismatched, orphan mints or duplicate mints.
Circle
November 29, 20260
0
0 solved
Given burn events from source chains and mint events from destination chains, each identified by (source_domain, nonce), classify transfers as completed, stuck past an SLA, mismatched, orphan mints or duplicate mints.
Models the monitoring behind a burn-and-mint protocol like CCTP, where a transfer is only finished once the destination mint lands. The interviewer is checking that you pick the right join key, think about every failure category, and treat duplicates as a severity-one signal.
What the Interviewer Expects
- Keys transfers by (source_domain, nonce), not by nonce alone
- Detects duplicate mints for the same message, which would mean double issuance
- Compares amount, recipient and destination between burn and mint
- Flags burns with no mint only after an SLA window
- Returns latency for completed transfers to feed metrics
- Explains the complexity and memory for large windows
Key Topics to Cover
How to Approach This
- Clarify input constraints and edge cases before writing code.
- Walk through your approach verbally and confirm with the interviewer before coding.
- Start with a brute force solution, then optimize. Mention time and space complexity.
- Test your solution with examples, including edge cases like empty input or duplicates.
- Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
- The mint events stream in continuously; how do you make this incremental with bounded memory?
- Which categories should page someone at 3 a.m. and which go to a daily report?
- How would you handle a source-chain reorg that removes a burn after the mint was attested?
- How would you compute p50 and p99 transfer latency per route?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice DSA ProblemsSample Answer
Requirements
- Burns and mints carry
source_domain,nonce,amount,recipient,dest_domain,ts. - Nonces are unique per source domain only, so the key is the pair.
- Output buckets:
completed(with la...
High-Level Design
Build a hash map from key to burn. Walk mints in time order, tracking which keys have been minted: a repeat key is a duplicate, an unknown key is an orphan (or our burn indexer is behind), a field mis...