Skip to main content

LRS ↔ ViewTrade tie-out

The two-source reconciliation. Verifies that money sent from India (GlomoPay LRS remittances) matches money landing at USD custody (ViewTrade wires).

The rules

  • The USD deposit is posted once — as the ViewTrade wire-in.
  • GlomoPay contributes only the audit row and the FX-spread accrual — never the deposit cash.
  • Per-customer tie-out (Σ remitted USD ≈ Σ funded USD) is the meaningful signal.
  • Per-remittance exact matching is best-effort — see the caveat below.

The four states

BucketMeaning
MatchedA GlomoPay remittance paired with a ViewTrade wire-in on the same customer within the amount + date tolerance
In-transitGlomoPay remittance with no matching wire-in yet — money still in flight
Aged in-transitIn-transit older than a few days — worth review
Unmatched fundingViewTrade wire-in with no GlomoPay remittance — a direct funding, or a remittance we haven't ingested

The exact-matching caveat

True per-remittance matching is not possible from what the ledger polls:

  • GlomoPay carries a remittance reference on the order.
  • ViewTrade's poll carries no such reference — only its own transfer id.
  • GlomoPay batches at settlement — many small LRS orders can land as one ViewTrade wire.
  • Some ViewTrade wires aren't GlomoPay-sourced at all (customers can wire directly for reasons).

So the matcher does best-effort amount + customer + day-window pairing. Per-customer totals are the reliable signal. To get exact per-remittance matching we need a shared reference on both sides — either from a ViewTrade webhook (which carries the reference) or from api-global's cross-linking view.

What the report shows

Per customer:

  • Σ remitted (GlomoPay), Σ funded (ViewTrade), diff
  • Matched count, in-transit count, unmatched funding count

Plus lists of the specific matched pairs, in-transit remittances, and unmatched fundings (up to 200 each).

Where to see it

  • Frontend: the LRS ↔ ViewTrade panel on /reconciliation (India book).
  • API: GET /v1/india/reconciliation.
  • Also runs as the Category-C lrs_viewtrade_tie_out reconciliation check.