ERRNA expert insight
Crypto Exchange Migration: An Operator's Cutover Design for Balances, In-Flight Withdrawals, and KYC Records
Crypto exchange migration is the controlled move of a live trading platform from one software stack, vendor, or hosting model to another. It covers customer balances, open orders, in-flight deposits and withdrawals, KYC and screening records, API keys, and webhooks. An exchange rarely migrates because things are going well. Operators move because a white-label vendor is being exited, a license footprint changed, volume outgrew the original architecture, or an acquisition forced consolidation. The pressure is real, and so is the temptation to treat the project as a database copy with a maintenance banner.
That framing is where migrations go wrong. A database copy preserves rows. An exchange also has to preserve obligations: what each customer is owed, which withdrawals may already be on-chain, which identity checks are still valid, and which evidence a regulator can ask for years later. This article is written for the Product Head or Exchange Operator who owns the cutover decision. It offers a proposed design (not an established Errna method) for moving state in five domains, rules for handling ambiguous operations, a privacy and recordkeeping view, and a set of mandatory go/no-go controls. Nothing here is legal advice, and every regulatory point needs confirmation against the rules that apply to your entity.
If you want adjacent depth first, these Errna guides cover the building blocks: ledger design that prevents overspent balances, reconciling unknown withdrawal outcomes, and restoring ledgers without duplicate or lost withdrawals.
Key Takeaways
- Migrate obligations, not just rows. Balances, open orders, in-flight movements, compliance evidence, and integrations are five separate state domains, each with its own source of truth and proof of completeness.
- One writer at a time. Exactly one platform may hold withdrawal authority at any moment. Two systems able to sign from the same hot wallet is the most expensive failure in this project.
- Unknown is not success and not failure. A withdrawal whose broadcast result could not be confirmed must be reconciled against the chain and custody records before anyone retries it.
- Bind operations to approved payloads. Use a durable, tenant-scoped operation ID tied to an immutable payload hash, claim work atomically, and reject changed-payload reuse of an ID.
- Compliance accountability does not move with the code. Retention, reconstruction of transactions, and processor roles stay with the operator. Verify the rules for your jurisdictions with counsel.
- Use go/no-go controls, not a score. Every control in the checklist below is required. One failed control blocks cutover, regardless of how many others pass.
Why Exchange Migrations Fail Before the First Line of Code
Key takeaway: Migration risk is set by what the old platform implicitly did, not by what its documentation says. The inventory of hidden behavior is the real first deliverable.
A running exchange accumulates behavior nobody wrote down. The old matching engine may round fees in a particular direction. The vendor's withdrawal worker may silently retry after a timeout. A cron job may nightly flag accounts whose screening result expired. A support tool may let agents manually mark deposits as credited. None of this appears in a migration statement of work, yet each item changes customer money or compliance posture the day it disappears.
The causes are structural, not personal. Migration projects are usually staffed by engineers who inherit a system, scoped by a business owner who wants a date, and approved by a compliance function that sees the plan only after architecture is fixed. Each group reasonably assumes another owns the gap. The gap is where funds and evidence get lost.
Common migration triggers and the risk each one amplifies
| Trigger | Typical pressure | Risk it amplifies |
|---|---|---|
| Exiting a white-label or SaaS vendor | Contract end date, limited vendor cooperation | Incomplete data export, undocumented behavior, key and secret handover |
| Moving to custom architecture | Need for control, new asset or product lines | Ledger semantics differ (precision, rounding, hold models) |
| Licensing or jurisdiction change | Regulator-driven deadline | KYC evidence format, data residency, retention obligations |
| Scale or latency limits | Outages during volume spikes | Cutting over under live load with open orders |
| Acquisition or consolidation | Two customer bases, one platform | Duplicate identities, conflicting policies, tenant boundaries |
If you are still deciding whether to leave a vendor at all, start with Errna's build vs buy vs white-label decision framework. This article assumes the decision is made and the question is how to execute without harming customers.
How Most Teams Approach Cutover, and Why It Breaks
Key takeaway: The three common cutover shapes differ less in elegance than in what they let you prove before customers depend on the new platform. Prefer the shape that gives you the most reconciliation evidence per unit of risk.
The typical plan has a familiar arc: choose a low-traffic weekend, post a maintenance notice, export the database, transform it, import it, smoke-test, and reopen. Variants exist, but they reduce to three shapes.
Option comparison: big-bang, phased, and parallel-run with single-writer switch
| Dimension | A: Big-bang weekend | B: Phased by segment | C: Parallel run, then single-writer switch |
|---|---|---|---|
| Description | Halt, export, import, reopen in one window | Move by asset, region, or tenant cohort over weeks | New platform shadows production, reconciles continuously, then takes sole authority |
| Relative cost | Lowest up front, highest if it fails | Moderate, longer dual operation | Highest engineering cost, lowest incident exposure |
| Customer-facing risk | Concentrated in one window | Spread out, but segment boundaries leak (shared accounts, shared wallets) | Lowest, if shadow data is trustworthy |
| Speed | Fastest | Slowest | Medium |
| Rollback realism | Poor once any withdrawal broadcasts | Good per segment, poor for shared wallets | Good before switch, forward-fix after |
| Hidden failure mode | In-flight withdrawals of unknown state at the moment of export | Cross-segment balance transfers, split liquidity, duplicated compliance policy | Shadow drift: the shadow passes tests because it only sees clean traffic |
Why the weekend plan fails even when executed well
- It treats export time as a point, not an interval. A withdrawal can be approved, signed, broadcast, and confirmed while an export runs. The export captures a state that never existed atomically.
- It validates structure, not meaning. Row counts match. Row semantics (hold versus available, pending versus settled) may not.
- It has no defined point of no return. Teams discover during the window that rollback means reconciling two ledgers, which is the very work they skipped.
- It is rehearsed on sanitized data. Rehearsal on clean samples hides malformed legacy records, orphaned holds, and edge-case decimals that production contains.
No option is universally correct. A small operator with few assets, no fiat rails, and a pausable user base can reasonably choose A with a long drain period. An operator with shared hot wallets, multiple tenants, or continuous API trading usually needs C, even though it costs more. That trade-off belongs in the project charter, not in a Friday-night decision.
A Proposed Model: Five State Domains to Move and Prove
Key takeaway: Treat the migration as five parallel workstreams, each with a named owner, an authoritative source, a completeness proof, and a rule for unknown records. This is a proposed design for planning, not a certified method.
The model below splits the platform into domains that fail differently. Money state fails by being wrong, movement state fails by being ambiguous, compliance state fails by being unprovable, and integration state fails by being silently different. Mixing them in one "data migration" ticket is how ownership disappears.
The five-domain cutover model (proposed design)
| Domain | What it contains | Authoritative source | Completeness proof | Rule for unknown records |
|---|---|---|---|---|
| 1. Money state | Customer balances, holds, fees, internal transfers, treasury accounts | Append-only ledger entries, not cached balances | Per-asset sum of customer liabilities reconciles to custody and wallet balances within a defined, approved tolerance | Quarantine the account, restrict withdrawals, escalate |
| 2. Order state | Open orders, partial fills, stop triggers, trade history | Matching engine event log | Open-order reserve totals equal ledger holds; trade IDs map one-to-one | Cancel with explicit customer notice, never silently drop |
| 3. Movement state | Pending deposits, withdrawals, fiat settlements, chain references | Chain, custody provider, and bank records, not the application database | Every movement is classified: terminal success, terminal failure, or reconcile-required | Treat as unknown, reconcile before any retry |
| 4. Identity and compliance state | KYC status, evidence files, screening results, case notes, filings | Original evidence and decision records | Each migrated customer has status, evidence pointer, decision timestamp, and decision owner | Fail closed: no withdrawal or trading privilege on an unknown status |
| 5. Integration state | API keys, permissions, IP allowlists, webhooks, vendor callbacks, event IDs | Integration registry plus vendor documentation | Every consumer has a tested path and a communicated change | Disable the integration until verified, rather than assume parity |
Rules that apply across all five domains
- Stable legacy identifiers. Keep a mapping table from legacy IDs to new IDs for orders, trades, deposits, and withdrawals. Support, tax statements, and audits will ask for it years later.
- Integer minor units. Move amounts as integers in the smallest unit with explicit decimals per asset. Precision and rounding differences between platforms are a quiet source of reconciliation breaks.
- Single writer per domain. At any instant, one system is authoritative for each domain. Shadow systems read; they do not write to customers or chains.
- Evidence snapshots. Hash and store each pre-cutover export so you can prove what was handed over and when.
The ledger domain deserves the deepest engineering attention. For design patterns, see Errna's guide to preventing overspent balances and unreconciled custody. Deposits that were still confirming at the freeze point are covered in deposit crediting controls for confirmation, reorgs, and reconciliation.
In-Flight Money: Withdrawals, Webhooks, and Safe Idempotency During Cutover
Key takeaway: The dangerous moment is not the import. It is the interval where a withdrawal exists in the old system, may exist on-chain, and may be re-created by the new system. Operation identity, atomic claims, and chain-side reconciliation close that gap.
For consequential mutations such as withdrawals, an ambiguous timeout is not a license to retry. If the old platform asked a signer or custody provider to broadcast and never received an answer, the true state is unknown: the transaction may be unbroadcast, in a mempool, confirmed, or replaced. Unknown means completion could not be confirmed. It is neither success nor verified failure. The only safe move is to reconcile authoritative state first, using the transaction hash, custody provider records, and the chain itself.
Rules for operation identity
- Durable, tenant-scoped operation ID. Generate one per customer intent, store it before any side effect, and scope uniqueness by tenant. In a multi-tenant or white-label deployment, a bare global ID invites cross-tenant collisions.
- Bind the ID to an immutable approved payload hash. Hash the canonical payload that was approved (asset, amount, destination, memo or tag, fee policy). A later request reusing the same ID with a different payload is rejected, never merged or overwritten. This mirrors documented behavior in other mature APIs: Stripe's idempotent request documentation describes comparing incoming parameters to the original and returning an error if they differ. That is a vendor statement about Stripe's HTTP API, not a universal standard for exchanges or chains, so treat it as a design reference only.
- Do not put personal data in keys. The same Stripe documentation advises avoiding sensitive data such as email addresses or personal identifiers as idempotency keys. Identifiers can themselves be sensitive. A wallet address, an account number, or a user ID in logs and keys may become personal data in your jurisdiction.
- Retention must outlast the retry horizon. Stripe's documentation notes that for its API v1, keys can be pruned after at least 24 hours and a reused key then creates a new request. The lesson is general: if your operation records expire before your longest legitimate retry or reconciliation window, a duplicate becomes possible.
- Distinguish legitimate later operations. A customer who withdraws the same amount to the same address twice on purpose has two intents and two operation IDs. Derive IDs from intent (a client request ID or approval record), not from content alone, or you will block valid activity.
Illustrative claim pattern
Read-compare-then-write is not compare-and-swap. Two workers can both read "approved" and both proceed. The claim must be a conditional mutation enforced by the datastore. The sketch below is illustrative PostgreSQL, not an official contract of any vendor, and the table and column names are assumptions.
-- Illustrative sketch only. Adapt to your schema and datastore. CREATE TABLE withdrawal_operation ( tenant_id text NOT NULL, operation_id text NOT NULL, -- intent ID, no personal data payload_hash bytea NOT NULL, -- hash of canonical approved payload; never updated status text NOT NULL, -- approved | claimed | broadcast_unknown | confirmed | failed_terminal | cancelled claimed_by text, lease_expires_at timestamptz, chain_ref text, PRIMARY KEY (tenant_id, operation_id) ); -- 1. Register once. A conflict means the ID already exists. INSERT INTO withdrawal_operation (tenant_id, operation_id, payload_hash, status) VALUES ($1, $2, $3, 'approved') ON CONFLICT (tenant_id, operation_id) DO NOTHING; -- If zero rows inserted: load the existing row. If its payload_hash differs from $3, -- reject the request as a changed-payload reuse. Never overwrite the stored hash. -- 2. Atomic claim: the condition lives in the UPDATE, so only one worker succeeds. UPDATE withdrawal_operation SET status = 'claimed', claimed_by = $4, lease_expires_at = now() + interval '2 minutes' WHERE tenant_id = $1 AND operation_id = $2 AND payload_hash = $3 AND status = 'approved' RETURNING operation_id; -- Zero rows: another worker owns it or state changed. Do not broadcast. -- 3. If a lease expires after a broadcast attempt, move the row to 'broadcast_unknown'. -- Never return it to 'approved' automatically. Resolve it by chain and custody lookup.Chain specifics matter. On account-based networks, each account's transactions carry a nonce, and Ethereum's transaction documentation describes how the nonce orders an account's transactions. A stuck transaction may be replaced by another using the same nonce, so a naive "resend" can produce either a duplicate payout or a replacement. UTXO-based chains behave differently. Your reconciliation procedure must be written per chain family, and migration is the worst time to discover that the new platform's nonce manager starts from a stale counter.
Inbound events, outbound acknowledgment, and terminal failure
- Deduplicate and record atomically. When a deposit notice, custody callback, or bank event arrives, write the inbox record (unique on tenant, source, and event ID) and the resulting work item in the same transaction. Acknowledge delivery only after that commit. If the commit fails, return an error so the sender retries. Where one atomic write is impossible, the recovery path must be explicit and tested.
- Verify acknowledgment. Mark an outbound message delivered only on a confirmed receipt from the counterparty, not on "we sent it." For customer webhooks, keep event IDs stable across the migration, or announce replays, so consumers can deduplicate.
- Define terminal failure. After a bounded number of attempts or a defined time, an operation moves to a terminal state with a named owner, a customer-visible status, and a funds-release rule. An endless retry loop is a hidden incident.
- Handle uncertain input. A callback with a missing signature, unknown asset, or mismatched amount goes to a quarantine queue. It never auto-credits.
For deeper treatment of these patterns, read Errna's guides on idempotent withdrawals and webhooks and unknown withdrawal outcomes. Custody integration choices also shape what you can enforce at the signing layer; see Errna's crypto custody integration service page.
Enforcing a single writer on the signing path
The control that most directly prevents double payout is an authority switch, not an application check. Before cutover, only the old platform may request signatures. After the switch, only the new one may. Where your custody or signing policy engine supports restricting which system identity can initiate withdrawals, enforce the switch there, under maker-checker approval. Where it does not, disclose that limitation in the runbook and compensate with manual key-policy changes, a withdrawal freeze during the switch, and a post-switch reconciliation of every hot-wallet outbound transaction. Do not assume a vendor offers this capability; confirm it against the vendor's own documentation and contract.
Compliance, Privacy, and Evidence: Moving KYC Records Without Losing Accountability
Key takeaway: Moving identity and screening data changes who holds it, not who is answerable for it. Plan retention, access, and deletion as part of the migration, and fail closed on any customer whose status you cannot prove.
The compliance domain is where migrations quietly create audit findings months later. Two questions drive it: can you still reconstruct what happened, and are you still handling personal data lawfully while you move it?
Recordkeeping: reconstruct, do not just retain
The FATF standard on record-keeping, Recommendation 11 in the FATF Recommendations, calls for transaction records kept for at least five years and sufficient to permit reconstruction of individual transactions, and for customer due diligence records, account files, and the results of any analysis undertaken to be kept for at least five years after the business relationship ends. FATF's guidance for virtual asset service providers has been summarized by law firms as noting that public blockchain data can support recordkeeping but that complete reliance on distributed ledger data is not sufficient; see this Davis Polk summary of the FATF virtual asset guidance. National rules vary in period, format, and scope. What your own regulator requires is a reader-specific legal obligation that counsel should confirm.
Operationally, this means a migration must preserve not only the KYC outcome ("approved") but the evidence pointer, decision timestamp, reviewer, screening results, and case notes. If the new platform stores only a status flag, you have lost reconstruction ability even though no data was "deleted."
Privacy ownership during transfer
- Name the accountable party for every dataset. If a vendor processed KYC data on your behalf, the exit plan should specify export format, verified deletion by the vendor, and a certificate or equivalent evidence. Some regulators state expressly that outsourcing a record-keeping function does not transfer accountability; check yours.
- Processor roles. Where the EU GDPR applies, the regulation's Article 28 requires processing by a processor to be governed by a contract or other legal act. Applicability and roles are fact-specific, so this is a prompt to review contracts with both the outgoing and incoming providers, not a conclusion.
- Retention versus erasure. Storage limitation (Article 5(1)(e)) and erasure rights (Article 17) sit alongside retention duties under AML rules. Article 17 itself contains exceptions for legal obligations. Document which records are retained, for how long, and on what basis, rather than migrating everything forever or deleting on customer request without analysis.
- Identifiers are data too. Wallet addresses, internal user IDs, and idempotency keys can be linked to individuals. Keep them out of general-purpose logs, vendor support tickets, and migration spreadsheets that circulate by email.
- Data residency. Moving evidence files across regions can itself breach local requirements. Confirm the target storage location before the first transfer.
Unknown compliance status fails closed
For each migrated customer, classify the KYC state as verified with evidence, verified without retrievable evidence, expired, or unknown. Only the first class keeps full privileges. The others are restricted until re-verified or resolved by a documented compliance decision. The same principle applies to address screening: a customer whose last screening result cannot be shown should be re-screened before withdrawals resume. For design details, see Errna's guides on unknown KYC outcomes and fail-closed design and the KYC/AML compliance service overview.
Compliance migration checklist
| Item | Evidence you should be able to show |
|---|---|
| Customer status mapping | Legacy status to new status table, approved by compliance |
| Evidence continuity | Sample of customers traced from legacy file to new record with hash match |
| Screening continuity | Last screening date and result per customer, or a re-screen decision |
| Case and filing history | Open cases transferred with owners; filings retained per policy |
| Access controls | Role mapping for staff, with least privilege on the new system |
| Vendor exit | Written confirmation of export completeness and deletion of residual copies |
Why This Fails in the Real World
Key takeaway: Capable teams still fail because the plan has a gap between systems that no one owns. The scenarios below are illustrative composites of common failure shapes, not reports of specific customers.
Failure pattern 1: The withdrawal that existed twice (illustrative)
An operator freezes new withdrawal requests, then exports the database. Several approved withdrawals are marked "processing" because the old signer returned a timeout. The importer maps "processing" to "approved" on the new platform, assuming the old system never sent them. The new worker broadcasts. Some of those transfers had in fact been sent minutes earlier. The ledger shows one debit per customer, the wallet shows two payouts, and the loss is discovered only at the next treasury reconciliation.
Why intelligent teams still fail: The status mapping was designed by data engineers who saw "processing" as a workflow label. Nobody owning custody reviewed it, and no rule said ambiguous states must be reconciled against the chain before they are re-queued. The system gap is a missing "unknown" state and a missing owner for movement state.
Failure pattern 2: The compliance flag that became a blank (illustrative)
The new platform has a simpler customer model. During import, a legacy field holding "enhanced due diligence pending" has no target, so the importer sets the default: verified. For weeks, a subset of customers with open reviews trade and withdraw without restriction. A later audit asks for the decision trail on those accounts, and the evidence exists only in the decommissioned vendor system, whose contract ended.
Why intelligent teams still fail: Defaults were treated as safe. The project plan had a data-mapping task but no "unmapped values fail closed" rule, and compliance reviewed the field list instead of the value distributions. Vendor exit terms did not require an evidence archive.
Failure pattern 3: Shadow mode that proved nothing (illustrative)
A team runs the new platform in parallel for two weeks and reports zero discrepancies. The shadow only consumed a replay of clean order flow. It never saw partial fills during volatile periods, customer cancellations racing with fills, or callbacks arriving out of order. At switch time, the first burst of out-of-order callbacks produces duplicate credits that the shadow never encountered.
Why intelligent teams still fail: "No discrepancies" was accepted as evidence without asking what traffic had been exercised. The control gap is a missing adversarial test set: duplicated, delayed, reordered, malformed, and conflicting events.
Failure signals worth acting on early
| Signal | What it usually means |
|---|---|
| "We'll reconcile after cutover" | No pre-cutover proof exists; rollback is already impossible |
| One status value maps to two meanings | Silent semantic drift in the money or movement domain |
| Vendor cannot provide a full evidence export | Compliance continuity is at risk; escalate before the contract end |
| Both platforms can sign from one wallet | No single-writer control; double-payout risk is open |
| Rehearsals use sanitized data only | Production edge cases are untested |
| No named owner for "unknown" records | Ambiguous cases will be resolved by whoever is online |
Go/No-Go Controls, Trade-offs, and a Lower-Risk Cutover Path
Key takeaway: Cutover readiness is a set of mandatory controls, all of which must pass. A weighted score can hide a fatal gap behind many easy passes, so this artifact has no points and no threshold.
Mandatory go/no-go controls
Every row below is required. A single "no" blocks the cutover until it is resolved or formally accepted by named owners in writing. This list is a planning aid, not a certification of production readiness, and it is not a substitute for your own risk assessment, auditor, or counsel.
| # | Control | Pass condition (evidence) |
|---|---|---|
| 1 | Single-writer authority | Only one platform can initiate withdrawals; switch is enforced at the signing or custody policy layer or the limitation is disclosed with compensating controls |
| 2 | Ledger reconciliation | Per-asset customer liabilities reconcile to custody and wallet balances within an approved tolerance; every break explained |
| 3 | In-flight classification | Every pending deposit, withdrawal, and fiat movement is classified as terminal or reconcile-required; none is mapped by assumption |
| 4 | Unknown handling | An explicit unknown state exists, has an owner, and blocks retry until chain and custody reconciliation completes |
| 5 | Operation identity | Tenant-scoped operation IDs bound to immutable payload hashes; changed-payload reuse rejected; claims atomic in the datastore |
| 6 | Durable inbox and outbox | Deduplication, event recording, and work scheduling committed atomically before acknowledgment, or a tested recovery path exists |
| 7 | Compliance fail-closed | Unmapped or unknown KYC and screening states restrict privileges by default; mapping approved by compliance |
| 8 | Evidence continuity | Sampled customers traced end to end with retrievable evidence and decision records |
| 9 | Privacy ownership | Named data owner, processor contracts reviewed, retention basis documented, vendor deletion plan agreed |
| 10 | Integration parity | API permissions, allowlists, webhook secrets, and event ID behavior tested with representative consumers; withdrawal-enabled keys re-confirmed |
| 11 | Adversarial rehearsal | At least one full rehearsal on production-shaped data with duplicated, delayed, reordered, and malformed events |
| 12 | Point of no return | Written definition of when rollback becomes forward-fix, with approvers, and a communication plan for customers |
| 13 | Recovery plan | Backup, restore, and contingency steps tested; NIST SP 800-34 Rev. 1 is a useful general reference for contingency planning, though it was written for federal information systems and needs adaptation |
A lower-risk cutover sequence
- Inventory implicit behavior. Interview support, treasury, and compliance staff and list every manual tool, cron job, and vendor-side default.
- Build the mapping tables. Statuses, IDs, assets, decimals, and permissions, each with an owner and an "unmapped fails closed" rule.
- Shadow with adversarial traffic. Replay production events, then inject faults. Reconcile continuously.
- Pause withdrawals first, then trading. Let in-flight movements drain to terminal or classified states. Record the freeze point and hash the snapshot.
- Switch the writer. Change signing authority under maker-checker approval, with both teams present. Confirm the old platform can no longer request signatures.
- Reopen in stages. Read-only access, then trading, then deposits, and withdrawals last, starting with low-risk assets and amount limits, each stage gated on reconciliation.
- Hold the old system read-only. Keep it available for evidence and disputes until retention, contract, and audit needs are met.
Recommendation by situation
| Situation | Suggested shape | Reasoning |
|---|---|---|
| Few assets, no fiat rails, tolerant user base | A with a long drain period, or B by asset | Lower state volume makes full reconciliation feasible in one window |
| Shared hot wallets or multiple tenants | C | Segment-by-segment moves leak across shared wallets and tenant boundaries |
| Fiat on and off ramps with pending settlements | C, with bank-side reconciliation gates | Settlement state lives outside your database; see fiat on-ramp and off-ramp reconciliation controls |
| Vendor exit with limited cooperation | B or C, started well before contract end | Early export rehearsals reveal gaps while you still have leverage |
Trade-offs to state plainly
- Parallel running costs more engineering time and extends the period of dual infrastructure. The cost is usually smaller than one unreconciled payout, but the budget should say so.
- Longer freezes protect funds and frustrate active traders. Decide in advance which cost the business accepts, and communicate it.
- Re-verifying customers reduces compliance risk and increases support load and churn risk.
- Strict fail-closed defaults will lock out some legitimate customers temporarily. That is the intended behavior.
2027 Update: what to re-check, and what does not change
Rules on travel-rule data exchange, custody segregation, and licensing for crypto service providers continue to evolve across jurisdictions, and vendor product capabilities change between releases. Re-verify any regulatory or vendor-specific statement in this article against current primary sources before relying on it. The structural points, however, are stable across years and platforms: single-writer authority, unknown states reconciled against authoritative records, operation identity bound to approved payloads, atomic claims, fail-closed compliance defaults, and evidence that survives the vendor relationship.
Planning a platform move and unsure which state you cannot prove?
Bring your current architecture, vendor terms, and cutover date. We will pressure-test the five domains with you before customers feel it.
Talk to Errna's engineers about a migration readiness review for your exchange.
Contact UsConclusion: Decisions to Make Before You Set a Cutover Date
A migration is ready when you can prove what you owe, what has moved, who is verified, and which system is allowed to act. Calendar pressure does not change that definition. Use the following actions as guidance for your next planning meeting.
- Assign owners to the five domains. Money, order, movement, identity and compliance, and integration state each need one accountable person and one completeness proof.
- Define the unknown state and its owner. Decide, in writing, that ambiguous withdrawals and callbacks are reconciled against chain and custody records before any retry.
- Fix the single-writer switch. Determine where signing authority is enforced, confirm that capability with your custody provider's own documentation, and rehearse the switch under maker-checker approval.
- Get compliance and counsel into the mapping work. Confirm retention periods, processor roles, residency, and fail-closed defaults for your jurisdictions before data moves.
- Adopt the go/no-go table as a gate. Treat any unresolved control as a stop, and set the date only after a rehearsal on production-shaped data passes.
About the Errna team: Errna has been in business since 2003 and builds blockchain, cryptocurrency exchange, and digital asset platforms for clients in many countries. Its published credentials and company background are listed on the Errna About Us page, and scope of any certification should be confirmed during vendor due diligence. Errna's exchange work includes crypto exchange development and white-label crypto exchange options. The frameworks in this article are proposed designs for planning, not guarantees of outcome. Reviewed by Errna Expert Team.
Frequently Asked Questions
What is crypto exchange migration?
Crypto exchange migration is the controlled transfer of a live exchange's operations to a different software platform, vendor, or hosting model. It includes customer balances, open orders, pending deposits and withdrawals, KYC and screening records, API keys, and webhooks. Moving the database is only one part. The harder work is proving that obligations, in-flight movements, and compliance evidence are complete after the switch.
How do you migrate a crypto exchange without losing customer balances?
Move balances from append-only ledger entries rather than cached totals, use integer minor units, and reconcile per-asset customer liabilities against custody and wallet balances before reopening. Quarantine any account with an unexplained break. Keep legacy-to-new ID mappings so every balance can be traced back to its original entries.
What happens to pending withdrawals during an exchange migration?
Pause new withdrawals first and let pending ones drain. Classify each remaining one as terminal success, terminal failure, or reconcile-required. A withdrawal whose broadcast result could not be confirmed is unknown, not failed. Reconcile it against the transaction hash, custody records, and the chain before anyone re-queues or retries it.
Why shouldn't I retry a timed-out withdrawal after cutover?
A timeout means you did not receive a confirmation. The transaction may still have been broadcast, may be pending, or may have confirmed. Retrying without reconciling can pay the customer twice. Bind each withdrawal to a durable, tenant-scoped operation ID and an immutable approved payload hash, claim it atomically, and resolve unknown outcomes from authoritative records first.
Are idempotency keys a universal standard for exchange APIs?
No. Idempotency behavior is defined by each API's own documentation. For example, Stripe documents how its HTTP API handles keys, including parameter comparison and retention windows, but that behavior does not automatically apply to custody providers, banks, or blockchain networks. Use such documentation as a design reference and verify each integration's actual contract.
How should KYC data be migrated between exchange platforms?
Migrate the status plus the evidence pointer, decision timestamp, reviewer, screening results, and case notes, not just an "approved" flag. Map every legacy value explicitly, and default unmapped or unknown statuses to restricted privileges until re-verified. Confirm retention, residency, and processor-contract requirements with counsel for your jurisdictions.
- Verified with retrievable evidence: keep privileges.
- Verified without evidence, expired, or unknown: restrict and resolve.
How long should an exchange keep transaction and KYC records after migration?
The FATF Recommendations call for transaction records and customer due diligence records to be kept for at least five years, with CDD records kept for at least five years after the business relationship ends. National rules differ and may be longer or more specific, so confirm the requirement with your regulator and counsel, and make sure the retention plan covers both the old and new systems.
Should we choose a big-bang or phased exchange migration?
It depends on state complexity. Small operators with few assets, no fiat rails, and a pausable user base can sometimes use a big-bang cutover with a long drain period. Operators with shared hot wallets, multiple tenants, or continuous API trading generally benefit from a parallel run followed by a single-writer switch, because it produces reconciliation evidence before customers depend on the new platform.
Your next cutover should not depend on hope.
Hidden status mappings, ambiguous withdrawals, and unprovable KYC records surface at the worst possible time. Find them while the old platform is still running.