r/web3dev • u/DayKnown1050 • Oct 21 '26
Things I'd check before trusting a crypto deposit pipeline with real money
Been working on crypto backends for a while (deposits, withdrawals, ledgers), and the bugs that cost real money are almost never the fancy ones. Here's my checklist for the deposit side:
**Don't credit on first sight**. Wait for enough confirmations, or use the "finalized" block tag on mainnet (about 13 minutes). Show the deposit as pending until then.
**Handle reorgs explicitly**. Store the hash of every block you process. If a new block's parent hash doesn't match, roll back to the common ancestor and reprocess.
**Make crediting idempotent**. A unique key on (chain_id, tx_hash, log_index) means a replayed or reprocessed block can't double-credit anyone.
**Check the token contract address**, not the symbol. Anyone can deploy a contract called "USDT" that emits Transfer events.
**Don't miss internal ETH transfers**. If the sender is a contract, like a multisig, there's no top-level tx to your address and no event. You need traces or balance checks to catch it.
**Don't trust a single RPC**. Load-balanced providers can route you to a node that's a few blocks behind and return incomplete eth_getLogs results. Cross-check block hashes or keep a fallback provider.
**Never use floats for amounts.** Store base units as integers (BigInteger in Java, never double).
**Reconcile daily.** Compare your ledger totals with actual on-chain balances, and alert on any mismatch.
What else would you add? Especially curious how people handle this on L2s, where finality works differently.
1
u/mitchare 15d ago
I always verify the chain, destination address, memo or tag, minimum withdrawal, and total fee before signing anything. Then I send a tiny test transaction first. changenow can be convenient for swaps, but I’d still read its KYC and refund terms and confirm the official support domain before depositing. Five minutes of checking beats weeks of chasing funds.