Research
Field notes on stablecoin integration security
Practical write-ups for the engineers who build and run stablecoin payment flows. Each one ends with something you can test this week.
- Ten ways stablecoin payment integrations lose money, and how to check yours Token spoofing, finality, webhooks, idempotency, decimals, keys, address poisoning, wrong-chain deposits, ledger drift and issuer freezes, with code and a twenty-point checklist.
- USDC and USDT freezes: what issuers control and how to handle it Blacklists, pauses, upgrades and Solana freeze authority: monitor them, check before every payout, and survive a frozen address.
- Stablecoin ledger reconciliation: ledger, chain and provider Double-entry schema, snapshots at a finalized block, transaction-level matching, gas, breaks and what auditors ask for.
- Wrong-chain stablecoin deposits: detect, prevent, recover EOAs, contract wallets, CREATE2 forwarders and EIP-7702 across chains, mis-send monitoring, and a recovery policy that isn’t a social-engineering target.
- Address poisoning and stablecoin payouts Vanity lookalikes, zero-value transfers and fake tokens: why test transfers aren’t enough, and the address book, tooling and detection controls that are.
- Stablecoin decimals and rounding, without losing a base unit Same symbol, different scale: the decimals table, integer amounts from RPC to database, and rounding rules that never create or lose a base unit.
- Stablecoin payouts that send twice, and how to stop them Ambiguous timeouts, retries that re-sign, nonces, blockhash expiry and provider idempotency keys: a payout pipeline that sends exactly once.
- Fake token deposits: how to tell real USDC from a lookalike Lookalike ERC-20s, event-only contracts, Solana mints, Tron TRC-10 assets and bridged USDC.e: identify the asset by address, never by name.
- Stablecoin off-ramp security: from USDC to cash Quotes, cash-pickup codes, paying before you are paid, issuer freezes and refunds: the off-ramp risks a review should cover.
- Hot-wallet key management for stablecoin payouts KMS, HSM, MPC or multisig: what each protects against, what it doesn’t, and the signer architecture that covers the gaps.
- Payment webhook security for stablecoin integrations Forged, replayed, duplicated, reordered, delayed and mis-environment events, and a handler that is correct under all six.
- When is a stablecoin payment final? Seen, safe and final: what each chain actually guarantees, how to query it, and how much unfinalized exposure to allow.