Stablecoins for cross-border payments
A dollar token can shorten a cedi-to-naira payment and move its costs somewhere else. Price both routes in integer minor units, post them in a multi-currency ledger, and break the token route on purpose
In this chapter's lab the correspondent route costs 7.46% of a GH₵4,800 invoice and the token route costs 3.20%, both from invented inputs. At the off-ramp the token's market price falls below $1.00 and the payee's naira fall with it. How far must the price fall before the token route costs as much as the correspondent route?
A cross-border payment moves value between two currencies and two banking systems that do not share a ledger. The cross-border payments chapter covers the correspondent route: a chain of banks, each holding an account with the next, each taking a fee and a margin. This chapter covers the alternative that startups and some corporate treasuries reach for: a stablecoin. It then does what the course always does with a new rail. It finds where the money sits at each step, which record can prove it, and what you post when the record disagrees with you.
What a stablecoin is, and what it is not
A stablecoin is a crypto-asset that aims to hold a stable value against a reference, usually a currency such as the US dollar. The reference is a promise, not a property of the technology. Three designs exist, and they fail differently.
| Design | What stands behind it | How it fails |
|---|---|---|
| Fiat-backed | A reserve of money, deposits and short-term government securities held by the issuer, and a right to redeem tokens for dollars | The reserve is smaller or riskier than claimed, the issuer cannot redeem fast enough, or the bank holding the reserve fails |
| Crypto-backed | Other crypto-assets, usually more than one token’s worth for each token issued | The collateral falls faster than it can be sold |
| Algorithmic | A rule that expands and contracts supply with no full reserve | Confidence goes and the rule cannot restore it |
This chapter is about the first row only: the reserve and the redemption right are what turn a promise into a claim.
Three words recur. Reserves are the assets the issuer holds against the tokens. Redemption is the holder’s right to exchange tokens for the reference currency at par, from the issuer, under the issuer’s terms: who may redeem, from what size, at what fee, in how many days. Most people holding a token never use it. They sell it to someone on an exchange, so the price they get is a market price that follows the redemption right and can drift from it. A peg is the target of one token for one dollar, and a de-peg is the market price leaving it.
The reserve has a quality, and the quality is the story of the best-known de-peg. In March 2023 the issuer of one widely used dollar token said that $3.3 billion of its reserves, about 8% of the total, was held at Silicon Valley Bank when that bank failed, and on 13 March that the reserve risk was removed and the de-peg closing. The statements are the issuer’s own; press reports put the token’s market price as low as about $0.88, a figure from the press only, which this chapter does not take as primaryas of 2026-11. Nothing was wrong with the technology. A reserve in a bank was briefly out of reach, and the market priced the doubt. Keep that as your model of a de-peg: the token is a claim on an issuer and its reserve, and the price tracks how sure the market is that the claim will be paid.
The Bank for International Settlements is the sceptic’s reference. Its Annual Economic Report 2025 (chapter III, published June 2025), as the BIS’s own chapter and press release are summarised in search results, says stablecoins fall short of the three tests it sets for the mainstay of a monetary system: singleness (acceptance at par), elasticity (flexible supply of money) and integrity (resistance to financial crime)as of 2026-11. Singleness is the test this chapter rests on: every pricing model here assumes one token is worth one dollar at both ends.
One payment, three legs
Take one invoice. A Ghanaian business owes Wrenpost GH₵4,800.00 for a quarter of messaging. The business pays in cedis to an account Wrenpost’s collector holds in Ghana. The collector must get naira into Wrenpost’s wallet. In the lab the collector is Owoleaf and the payee is a merchant wallet standing in for Wrenpost’s. There are two ways to do it, and the diagram shows both.
An on-ramp is a service that takes local money and gives you tokens. An off-ramp does the reverse. Both are businesses with their own prices, hours and rules about whom they serve. The network fee is paid to the network that carries the token transfer, in a token or in the network’s own coin, and it does not depend on the amount sent. Like the intermediary bank’s fee it is flat, but it is small: the lab uses one token, $1.00.
The second difference is settlement. A bank-to-bank chain settles when each bank settles with the next, and a payment can take days. A token transfer is recorded on the network in minutes, and the network says when a transfer is final: some networks treat a transfer as settled after a number of confirmations, others in a different way, and the term differs by design. Read the network’s documentation. The word to hold on to is the one from how money moves: finality is a property of a rail, and a payment is only as final as its weakest hop. The token leg may be final in minutes while the on-ramp’s cedi receipt and the off-ramp’s naira payment travel over bank rails with the banking hours and value dates you met in settlement and payouts.
Where the cost sits
Cost in a cross-border payment is the amount you would have had if money were free to move, minus what the payee receives. The yardstick is the mid-market rate, the rate halfway between buying and selling prices. Every leg that changes currency pays a spread, a margin in basis points (a basis point is one hundredth of a percent) over the mid rate, and every leg that charges a fee takes a flat amount or a share. Add them up and divide by the amount sent. That is the all-in cost: fees plus exchange-rate margin as a share of the amount sent, the measure the World Bank’s remittance price database is built on. The United Nations’ Sustainable Development Goal indicator 10.c.1 uses that measure: the target is a global average cost of 3% or less for sending $200 by 2030, with the World Bank’s Remittance Prices Worldwide database as its source, according to the World Bank’s metadata pageas of 2026-11. A B2B invoice is not a $200 remittance.
The lab prices the same GH₵4,800.00 invoice, worth ₦600,000.00 at the lab’s invented mid rates, along both routes. Every input is illustrative.
| Route A, correspondent | Cost | Route B, stablecoin | Cost |
|---|---|---|---|
| Sell cedis for dollars, 150 bps | ₦8,880.00 | On-ramp fee, 50 bps | ₦3,000.00 |
| Intermediary bank fee, $15.00 flat | ₦22,500.00 | Buy tokens, 100 bps spread | ₦5,910.89 |
| Sell dollars for naira, 200 bps | ₦11,372.40 | Network fee, 1 token flat | ₦1,500.00 |
| Beneficiary bank inward fee | ₦2,000.00 | Sell tokens, 100 bps spread | ₦5,895.90 |
| Off-ramp fee, 50 bps | ₦2,918.46 | ||
| All-in, from the lab | ₦44,752.40 (7.46%) | All-in, from the lab | ₦19,225.25 (3.20%) |
Three lessons come out of the table, and none of them is “tokens are cheaper”.
First, flat fees punish small payments. The $15 intermediary fee is 3.75% of this invoice and 37.5% of a GH₵480 one ($40.00 at the lab’s rate). Step 3 shows the cost for three invoice sizes: route A is about 43.55%, 7.46% and 3.85% as the invoice grows tenfold each time, and route B is about 5.42%, 3.20% and 2.98%. A route’s advantage depends on the size of the payment, so a price comparison needs a distribution of payment sizes, not one example.
Second, the two routes cross at inputs you can move. The lab’s break-even is an on-ramp spread of 564 bps (against 100 bps used) or a fall of 4.40% in the token’s price at the off-ramp. If your on-ramp’s spread is wider than the break-even on your payment sizes, the token route costs more, and the model has told you so before anyone has written code.
Third, the model leaves things out, and each one is a cost. Getting cedis into the on-ramp may cost a bank charge. Withdrawing naira from the off-ramp to a bank account may cost another. The price you are quoted may not be the price you get when the order executes, a difference called slippage. Holding tokens between legs puts you at the mercy of the price. Compliance checks have staff costs, and delays have costs of their own. A fair comparison puts a figure on each, from real quotes at the time, and every figure in this chapter is dated and invented.
What goes wrong
Name the failures first. Each looks like a working integration until the day it does not.
A de-peg between the legs. The token’s market price falls below $1.00 while you hold it or while the off-ramp sells it. You receive fewer naira than quoted. Who carries the shortfall is decided by a rule you set beforehand, and many teams find they never set one. The lab sets one: the payee is credited at the quote, and Owoleaf carries the difference.
A reserve or an issuer that fails. The March 2023 episode above was a bank. The issuer’s own failure is a different and larger event: the redemption right is only as good as the reserve and the issuer’s legal structure. You cannot see the reserve yourself, so you rely on the issuer’s disclosures and the law, which is why every regime below sets reserve and redemption rules.
A provider that fails or freezes. An on-ramp or off-ramp holds your money for the moments between legs, sometimes for days. If it fails, whether your balance is yours or a claim in its insolvency depends on its terms and the law. Wallets and stored value shows safeguarding for electronic money. Whether any equivalent protects a crypto balance at a given provider is a question for its contract and its regulator, not an assumption. Some issuers and providers can also freeze tokens or accounts; read the terms.
A transfer to the wrong place. A token sent to the wrong address, or on the wrong network, usually cannot be returned. A bank can recall a payment. A network generally cannot.
A retry that pays twice. A transfer is submitted, the answer is lost, and the job sends it again. The whole of idempotency applies unchanged: look the transfer up by its identifier on the network before you send another.
Sanctions and money laundering. A token transfer moves value across borders without the banks that normally screen it. The Financial Action Task Force’s 2025 targeted update on virtual assets, as the FATF’s own summary describes it, reports that illicit use of stablecoins by sanctioned and criminal actors kept rising, and says the Travel Rule (the duty to pass the sender’s and recipient’s details along a transfer) has been legislated in a growing number of jurisdictions. Sources count the jurisdictions differently, 73% of those surveyed in one report and 85 jurisdictions in another, so check the FATF’s tables for the current figureas of 2026-11. The on-ramp and off-ramp are regulated businesses with duties, and your company’s duty to know its customers does not disappear because the middle leg is a network.
A delay at the off-ramp. The tokens arrive, the naira does not, for reasons nobody tells you. This is a timing item at first and an exception later, exactly as in reconciliation: it is not a break until it ages past a limit.
The rules that apply
The rules below change faster than the technology. Each is dated and sourced, and each rests on what the sources support. Where the chapter could not read a primary document, it says so, and you should read the document itself before relying on the wording.
Nigeria
Two regulators matter. The Investments and Securities Act 2025, signed in March 2025 and replacing the 2007 Act (sources give the signing date as 25, 29 or 31 March), is described by law firms and by this professional-services summary as extending the definition of securities to cover virtual and digital assets, which puts providers of those assets under the Securities and Exchange Commission. The chapter did not find the Act’s own text in search resultsas of 2026-11. The SEC’s own amendments to its rules on digital assets, published as a document on its site, are described by commentators as creating licence categories for digital asset exchanges, intermediaries and custodians and as renaming the rules to cover issuance, offering platforms, exchanges and custody. The document’s cover page, as search results show it, gives an effective date of 30 June 2025, but commentary gives different dates for publication and effect, and the in-force text was not confirmed in this buildas of 2026-11.
The Central Bank of Nigeria’s guidelines on the operation of bank accounts for virtual asset service providers, dated 22 December 2023 (circular reference FPR/DIR/PUB/CIR/002/003) and, according to law-firm and search summaries and not read in the CBN’s own text, replacing its 2017 circular on virtual currency and a later letter, let eligible institutions such as commercial banks, merchant banks and payment service providers operate designated accounts for virtual asset service providers, for virtual asset transactions only and under continuous monitoringas of 2026-11. Sources describe the change differently, some as a lifting of a ban and others as a relaxation with limits; one analysis argues that accounts for direct peer-to-peer trades stay barred. For an engineer the consequence is practical: whether Wrenpost’s bank will open a naira account for an off-ramp, and on what terms, is decided by this document and by the bank’s own policy.
Newer reports of further SEC drafts and a sandbox were not primary documents, and this chapter does not rely on them. Read the SEC’s and the CBN’s current pages before any decision.
The United States and the European Union
These two regimes matter to a Lagos company for a reason that has nothing to do with where it sells. The tokens most used for payment are issued under them, and the reserve and redemption rules they set decide what a holder’s claim is worth.
The GENIUS Act (Public Law 119-27), signed on 18 July 2025, regulates payment stablecoins issued in the United States. Law-firm summaries say it requires issuers to back each outstanding token with at least one dollar of permitted reserves such as short-dated Treasury bills, insured deposits and repurchase agreements on them, to disclose their redemption policy including fees, to publish monthly reserve reports, and not to pay interest or yield on holding. They also say most of its operating rules start on the earlier of 18 January 2027 or 120 days after final regulations. The 120-day date comes from summaries, not the statute; the final regulations were reported overdue in mid-2026 and not confirmed issued, so check its effective-date provisionsas of 2026-11.
The European Union’s Markets in Crypto-Assets Regulation (Regulation (EU) 2023/1114) treats a token that references one official currency as an electronic money token. ESMA’s single rulebook text of Article 49, as summarised in search results and not read in full here, says the issuer must redeem it at par on the holder’s request, in funds other than electronic money, with no fee subject to Article 46as of 2026-11. Article 50 says issuers may not grant interest on electronic money tokensas of 2026-11. Under Article 149, as search results quote it, Titles III and IV (asset-referenced and electronic money tokens) have applied since 30 June 2024 and the rest of the Regulation since 30 December 2024as of 2026-11.
International standards
The Financial Stability Board’s high-level recommendations on global stablecoin arrangements, final report of 17 July 2023, are addressed to authorities and are not themselves binding. According to the one FSB text found, Recommendation 9 requires an effective stabilisation mechanism, so algorithmic stablecoins lacking one do not meet the recommendationsas of 2026-11. They are why the three-row table above has one row you can regulate and two you cannot.
Ghana is the payer’s side of this example and its rules are not covered here; Ghanaian law applies to that leg. The course’s chapter on other African markets takes the licensing view.
Modelling it in a ledger
The ledger of module 1 holds one currency. This one holds four: cedis (GHS), dollars (USD, in cents), the token (STBL, in micro-units, six decimal places by this lab’s choice) and naira (NGN, in kobo). Rule one is from money in software: integers in minor units, with the unit written in the code. The new rule is that a transaction must balance in every currency on its own.
A grand total is not enough. A debit of 1,000,000 micro-units against a credit of 1,000,000 pesewas sums to zero, and is wrong twice: a million micro-units is a dollar, a million pesewas is GH₵10,000. A posting function that groups by currency before it adds refuses it. A check that sums everything cannot see it, and the break at the end of the lab proves it.
How, then, does a conversion balance? Through conversion clearing accounts, one per currency. When cedis become tokens, the cedi side debits fx_conv_GHS and credits ghs_cash, and the token side debits stable_wallet and credits fx_conv_STBL. Each currency balances alone. Once the whole payment is complete, every clearing account is back to zero, and a clearing account that is not zero is an unfinished payment. That is the signal suspense gave in the reconciliation chapter.
A ledger records what moved, in the units that moved. It cannot show a spread. The spread is the difference between the rate you got and the mid rate, and the amounts in two currencies carry no memory of it. The evidence is the rate on each conversion, kept with the transaction. In the lab the cost is computed twice: from the legs, each priced at the mid rate, and as the invoice’s mid-rate value minus the naira the wallet was actually credited. They agree to the kobo, because the legs telescope: each leg’s output is the next leg’s input, so the costs add up to the difference between the start and the end.
The token route has a feature that the correspondent route does not need: a receivable. When the tokens are sent to the off-ramp the naira have not arrived, and a business that credits its payee immediately, as many do for a product that promises speed, holds offramp_receivable: naira the off-ramp has yet to pay. That is an asset with a counterparty. It is settled by the off-ramp’s payment, and it is where both breaks below show up.
Two breaks
The off-ramp’s report is the independent record, like the bank statement of reconciliation. The ledger credited the payee the quoted naira; the report says what was paid and when. Compare them, and two kinds of break appear.
Short-paid after a de-peg. The off-ramp sold the tokens when the market price was $0.97, a fall of 3% from par, and paid 3.00% less than the quote: 56,335,150 kobo against 58,077,475, a shortfall of 1,742,325 kobo or ₦17,423.25. The ledger’s offramp_receivable for the payment is settled at the amount paid, and the difference goes to fx_gain_loss as a loss. Nothing was wrong with the transfer. The loss is the price of crediting the payee before the naira arrived, a choice. Credit on arrival instead and the payee carries it, which is the decision the Decide below returns to.
Late. One payment’s naira arrive three days after the expected date. On the due date and the day after, the item is in transit and still timing. On the second day past due it has aged beyond the limit, one day of grace in the lab, and becomes a break: no amount is wrong, but a person must ask the off-ramp why, and the payee has already been credited with money the company does not hold. Put tolerances on time, not on amounts, as in the reconciliation chapter.
You work in labs/finance and create six small files there: corridor.py, xbledger.py, routes.py, cost.py, breaks.py and mislabel.py. All queries run through Python’s sqlite3 module. Nothing here talks to a network, a token or a provider: every rate, fee and spread is ILLUSTRATIVE, a number you may change. The scripts copy data/finance.sqlite to new files and never touch the original. Because loans.py and cards.py have been run, check.py also prints a line for each book.
1. Price both routes. Save corridor.py. Money is integer minor units throughout; rates are Fractions, so no float ever holds an amount. Percentages are printed for reading only.
"""One cedi payment, two routes, priced in integer minor units.
Every input below is ILLUSTRATIVE: invented for this lab, not a quote, a fee schedule or a
rule of any bank, exchange, issuer or regulator. Change them and rerun.
Minor units: pesewas (GHS), US cents (USD), kobo (NGN), and micro-units for the token
(this lab's token has six decimal places, so $1.00 is 1,000,000 micro-units).
Rates are Fractions, so no float ever touches money; amounts are always ints.
"""
from fractions import Fraction
PESEWAS_PER_CENT = Fraction(12) # mid-market, ILLUSTRATIVE: GH₵12.00 buys $1.00
KOBO_PER_CENT = Fraction(1500) # mid-market, ILLUSTRATIVE: ₦1,500.00 buys $1.00
MICRO_PER_CENT = 10_000 # 1 cent = 10,000 micro-units of the token
INVOICE_PESEWAS = 480_000 # GH₵4,800.00
ROUTE_A = dict(cedi_margin_bps=150, # bank's margin selling cedis for dollars
usd_fee_cents=1_500, # intermediary bank's fee, taken from the payment
naira_margin_bps=200, # beneficiary bank's margin selling dollars for naira
bank_fee_kobo=200_000) # beneficiary bank's inward fee
ROUTE_B = dict(onramp_fee_bps=50, # on-ramp provider's fee, taken from the cedis
onramp_spread_bps=100, # on-ramp's margin over the mid rate
network_fee_micro=1_000_000, # fee for the transfer on the network, in tokens
offramp_spread_bps=100, # off-ramp's margin over the market price of the token
offramp_fee_bps=50) # off-ramp's fee, taken from the naira
PAR = 10_000 # token price in bps of $1.00: 10,000 = exactly $1.00
def value_kobo(ccy, minor):
"""What an amount is worth at the mid rates, with the token at exactly $1.00, as an exact
Fraction of a kobo. The yardstick every cost is measured against."""
if ccy == "GHS":
return Fraction(minor) / PESEWAS_PER_CENT * KOBO_PER_CENT
if ccy == "USD":
return minor * KOBO_PER_CENT
if ccy == "STBL":
return Fraction(minor, MICRO_PER_CENT) * KOBO_PER_CENT
return Fraction(minor) # NGN
def leg(name, kind, ccy_in, amt_in, ccy_out, amt_out):
cost = value_kobo(ccy_in, amt_in) - value_kobo(ccy_out, amt_out)
return dict(name=name, kind=kind, ccy_in=ccy_in, amt_in=amt_in,
ccy_out=ccy_out, amt_out=amt_out, cost=cost)
def route_a(s=INVOICE_PESEWAS, p=ROUTE_A):
"""Correspondent route: cedis -> dollars -> naira. Returns the legs and the naira delivered."""
cents = s * 10_000 // (12 * (10_000 + p["cedi_margin_bps"])) # floor, in cents
after_fee = cents - p["usd_fee_cents"]
kobo = after_fee * 1500 * (10_000 - p["naira_margin_bps"]) // 10_000
delivered = kobo - p["bank_fee_kobo"]
legs = [leg("sell cedis for dollars", "convert", "GHS", s, "USD", cents),
leg("intermediary bank fee", "fee", "USD", cents, "USD", after_fee),
leg("sell dollars for naira", "convert", "USD", after_fee, "NGN", kobo),
leg("beneficiary bank fee", "fee", "NGN", kobo, "NGN", delivered)]
return legs, delivered
def offramp_kobo(micro, price_bps=PAR, p=ROUTE_B):
"""Naira the off-ramp pays for an amount of tokens at a market price, before its fee."""
return micro * 1500 * price_bps * (10_000 - p["offramp_spread_bps"]) // (MICRO_PER_CENT * 10_000 * 10_000)
def route_b(s=INVOICE_PESEWAS, p=ROUTE_B, price_bps=PAR):
"""Stablecoin route: cedis -> token -> naira. price_bps is the token's market price at the
off-ramp. Returns the legs and the naira delivered."""
fee = s * p["onramp_fee_bps"] // 10_000
net = s - fee
micro = net * 10_000 * 10_000 // (12 * (10_000 + p["onramp_spread_bps"]))
after_net = micro - p["network_fee_micro"]
gross = offramp_kobo(after_net, price_bps, p)
delivered = gross - gross * p["offramp_fee_bps"] // 10_000
legs = [leg("on-ramp fee", "fee", "GHS", s, "GHS", net),
leg("buy tokens with cedis", "convert", "GHS", net, "STBL", micro),
leg("network fee", "fee", "STBL", micro, "STBL", after_net),
leg("sell tokens for naira", "convert", "STBL", after_net, "NGN", gross),
leg("off-ramp fee", "fee", "NGN", gross, "NGN", delivered)]
return legs, delivered
def naira(kobo):
sign = "-" if kobo < 0 else ""
kobo = abs(int(kobo))
return f"{sign}₦{kobo // 100:,}.{kobo % 100:02d}"
def report(title, legs, delivered, s=INVOICE_PESEWAS):
sent = value_kobo("GHS", s)
print(f"{title}: GH₵{s // 100:,}.{s % 100:02d} sent = {naira(round(sent))} at the mid rate")
total = 0
for x in legs:
c = round(x["cost"])
total += c
print(f" {x['name']:<26}{x['kind']:<9}{naira(c):>14} {c / sent * 100:5.2f}% of the amount")
exact = sent - delivered
print(f" delivered {naira(delivered)}; all-in cost {naira(round(exact))} = {float(exact / sent) * 100:.2f}% "
f"(legs add to {naira(total)})")
assert sum(x["cost"] for x in legs) == exact # exact: the legs telescope
if __name__ == "__main__":
a, ra = route_a()
b, rb = route_b()
report("Route A, correspondent", a, ra)
print()
report("Route B, stablecoin", b, rb)cd labs/finance
python3 corridor.pyRoute A, correspondent: GH₵4,800.00 sent = ₦600,000.00 at the mid rate
sell cedis for dollars convert ₦8,880.00 1.48% of the amount
intermediary bank fee fee ₦22,500.00 3.75% of the amount
sell dollars for naira convert ₦11,372.40 1.90% of the amount
beneficiary bank fee fee ₦2,000.00 0.33% of the amount
delivered ₦555,247.60; all-in cost ₦44,752.40 = 7.46% (legs add to ₦44,752.40)
Route B, stablecoin: GH₵4,800.00 sent = ₦600,000.00 at the mid rate
on-ramp fee fee ₦3,000.00 0.50% of the amount
buy tokens with cedis convert ₦5,910.89 0.99% of the amount
network fee fee ₦1,500.00 0.25% of the amount
sell tokens for naira convert ₦5,895.90 0.98% of the amount
off-ramp fee fee ₦2,918.46 0.49% of the amount
delivered ₦580,774.75; all-in cost ₦19,225.25 = 3.20% (legs add to ₦19,225.25)Redo route A by hand. Cedis to dollars: 480,000 × 10,000 ÷ (12 × 10,150) = 39,408.86, floored to 39,408 cents. Less the $15.00 fee, 37,908 cents. Dollars to naira: 37,908 × 1,500 × 9,800 ÷ 10,000 = 55,724,760 kobo. Less the ₦2,000.00 inward fee, 55,524,760 kobo, or ₦555,247.60. At the mid rate the invoice is 480,000 ÷ 12 × 1,500 = 60,000,000 kobo, so the cost is 4,475,240 kobo, 7.46%. The program’s assert checks the telescoping: the legs’ costs, each exact, add up to that figure to the last fraction of a kobo. The all-in cost for route B is lower under these inputs. That is a result about these inputs.
2. Post both routes in a copy of the ledger. Save xbledger.py, which makes the copy, adds the corridor’s accounts and posts only balanced transactions, then routes.py.
"""A multi-currency copy of the ledger.
Amounts in `entries.amount_kobo` are minor units of the ACCOUNT's currency (pesewas on a cedi
account, cents on a dollar account, micro-units on the token account). The column keeps its
name because we do not change the schema; the account carries the currency. A transaction must
balance in every currency on its own, never in one grand total.
"""
import shutil
import sqlite3
import sys
from collections import defaultdict
SRC = "data/finance.sqlite"
AT = "2026-11-02T09:00:00+01:00"
NEW_ACCOUNTS = [ # code, name, type, currency
("ghs_cash", "Cedi account at the collecting bank", "asset", "GHS"),
("usd_nostro", "Dollar account at the correspondent", "asset", "USD"),
("stable_wallet", "Token wallet", "asset", "STBL"),
("ngn_collections", "Naira account for this corridor", "asset", "NGN"),
("offramp_receivable", "Naira the off-ramp has yet to pay", "asset", "NGN"),
("fx_gain_loss", "Exchange gain or loss", "expense", "NGN"),
("fx_conv_GHS", "Conversion clearing, cedis", "equity", "GHS"),
("fx_conv_USD", "Conversion clearing, dollars", "equity", "USD"),
("fx_conv_STBL", "Conversion clearing, tokens", "equity", "STBL"),
("fx_conv_NGN", "Conversion clearing, naira", "equity", "NGN"),
]
def make_copy(dst):
"""A fresh copy of the books with the corridor's accounts. Returns the connection and the
payee's wallet account code (the first merchant's)."""
shutil.copyfile(SRC, dst)
db = sqlite3.connect(dst)
for code, name, typ, ccy in NEW_ACCOUNTS:
db.execute("INSERT INTO accounts (code, name, type, currency, opened_at) VALUES (?, ?, ?, ?, ?)",
(code, name, typ, ccy, AT))
wallet = db.execute("""SELECT a.code FROM accounts a JOIN customers c ON c.id = a.customer_id
WHERE c.kind = 'merchant' ORDER BY c.id LIMIT 1""").fetchone()[0]
db.commit()
return db, wallet
def post(db, ref, at, legs, payee=None):
"""legs: (account code, 'debit' or 'credit', minor units). Refuses a transaction that does not
balance in every currency, and one that touches a negative amount."""
ccy = dict(db.execute("SELECT code, currency FROM accounts"))
net = defaultdict(int)
for code, side, minor in legs:
if minor <= 0:
raise ValueError(f"{ref}: {code} has an amount of {minor}")
net[ccy[code]] += minor if side == "debit" else -minor
off = {c: n for c, n in net.items() if n}
if off:
raise ValueError(f"{ref}: does not balance in {off} (debits minus credits, per currency)")
cur = db.execute("""INSERT INTO transactions (kind, status, customer_id, amount_kobo, fee_kobo, rail,
external_ref, created_at) VALUES ('cross_border', 'succeeded', ?, 0, 0, 'internal', ?, ?)""",
(payee, ref, at))
ids = dict(db.execute("SELECT code, id FROM accounts"))
for code, side, minor in legs:
db.execute("""INSERT INTO entries (transaction_id, account_id, direction, amount_kobo, posted_at)
VALUES (?, ?, ?, ?, ?)""", (cur.lastrowid, ids[code], side, minor, at))
return cur.lastrowid
def balances(db):
"""Debit minus credit per account for the corridor's own accounts, in each account's units."""
return {code: bal for code, bal in db.execute("""
SELECT a.code, COALESCE(SUM(CASE e.direction WHEN 'debit' THEN e.amount_kobo ELSE -e.amount_kobo END), 0)
FROM accounts a JOIN entries e ON e.account_id = a.id
WHERE a.code IN ({}) GROUP BY a.code""".format(",".join("?" * len(NEW_ACCOUNTS))),
[n[0] for n in NEW_ACCOUNTS])}
def check_currencies(db):
"""Per currency, for the whole ledger: every transaction's debits equal its credits, in that
currency. Returns a list of problems."""
rows = db.execute("""
SELECT e.transaction_id, a.currency,
SUM(CASE e.direction WHEN 'debit' THEN e.amount_kobo ELSE -e.amount_kobo END)
FROM entries e JOIN accounts a ON a.id = e.account_id
GROUP BY e.transaction_id, a.currency""").fetchall()
return [(t, c, n) for t, c, n in rows if n]
if __name__ == "__main__": # python3 xbledger.py check some.sqlite
path = sys.argv[2]
bad = check_currencies(sqlite3.connect(path))
if bad:
print(f"FAIL: {len(bad)} (transaction, currency) pairs do not balance, e.g. {bad[:3]}")
sys.exit(1)
print("OK: every transaction balances in every currency")"""Post the same GH₵4,800.00 invoice twice into a copy of the books: once by the correspondent
route, once by the token route. Both credit the payee's wallet with what arrives."""
import sqlite3
import corridor as c
import xbledger as xb
def post_route_a(db, ref, wallet, payee, at="2026-11-02T10:00:00+01:00"):
legs, r = c.route_a()
s, usd, usd2, kobo = legs[0]["amt_in"], legs[0]["amt_out"], legs[1]["amt_out"], legs[2]["amt_out"]
fee = usd - usd2
xb.post(db, ref + ":receipt", at, [("ghs_cash", "debit", s), ("fx_conv_GHS", "credit", s)], payee)
xb.post(db, ref + ":sell-cedis", at, [("fx_conv_GHS", "debit", s), ("ghs_cash", "credit", s),
("usd_nostro", "debit", usd), ("fx_conv_USD", "credit", usd)], payee)
xb.post(db, ref + ":intermediary-fee", at, [("fx_conv_USD", "debit", fee), ("usd_nostro", "credit", fee)], payee)
xb.post(db, ref + ":sell-dollars", at, [("fx_conv_USD", "debit", usd2), ("usd_nostro", "credit", usd2),
("ngn_collections", "debit", r), ("fx_conv_NGN", "credit", r)], payee)
xb.post(db, ref + ":credit-payee", at, [("fx_conv_NGN", "debit", r), (wallet, "credit", r)], payee)
return r
def post_route_b(db, ref, wallet, payee, price_bps=c.PAR, at="2026-11-02T10:00:00+01:00"):
"""Everything up to the off-ramp's payment. The payee is credited the quoted naira (the
off-ramp's payment at par) and the difference to the off-ramp's real payment comes later."""
legs, quoted = c.route_b()
s, micro, micro2 = legs[0]["amt_in"], legs[1]["amt_out"], legs[2]["amt_out"]
nf = micro - micro2
xb.post(db, ref + ":receipt", at, [("ghs_cash", "debit", s), ("fx_conv_GHS", "credit", s)], payee)
xb.post(db, ref + ":buy-tokens", at, [("fx_conv_GHS", "debit", s), ("ghs_cash", "credit", s),
("stable_wallet", "debit", micro), ("fx_conv_STBL", "credit", micro)], payee)
xb.post(db, ref + ":network-fee", at, [("fx_conv_STBL", "debit", nf), ("stable_wallet", "credit", nf)], payee)
xb.post(db, ref + ":send-to-offramp", at, [("fx_conv_STBL", "debit", micro2), ("stable_wallet", "credit", micro2),
("offramp_receivable", "debit", quoted), ("fx_conv_NGN", "credit", quoted)], payee)
xb.post(db, ref + ":credit-payee", at, [("fx_conv_NGN", "debit", quoted), (wallet, "credit", quoted)], payee)
return quoted
def settle_offramp(db, ref, quoted, paid, at):
"""The off-ramp's naira reaches the bank. A shortfall is a loss; an excess is a gain."""
legs = [("ngn_collections", "debit", paid), ("offramp_receivable", "credit", quoted)]
if paid < quoted:
legs.append(("fx_gain_loss", "debit", quoted - paid))
elif paid > quoted:
legs.append(("fx_gain_loss", "credit", paid - quoted))
return xb.post(db, ref + ":offramp-paid", at, legs)
if __name__ == "__main__":
db, wallet = xb.make_copy("data/xborder.sqlite")
payee = db.execute("SELECT customer_id FROM accounts WHERE code = ?", (wallet,)).fetchone()[0]
before = db.execute("""SELECT COALESCE(SUM(CASE direction WHEN 'credit' THEN amount_kobo ELSE -amount_kobo END), 0)
FROM entries e JOIN accounts a ON a.id = e.account_id WHERE a.code = ?""", (wallet,)).fetchone()[0]
ra = post_route_a(db, "XB-A-001", wallet, payee)
rb = post_route_b(db, "XB-B-001", wallet, payee)
settle_offramp(db, "XB-B-001", rb, rb, "2026-11-03T10:00:00+01:00")
db.commit()
after = db.execute("""SELECT SUM(CASE direction WHEN 'credit' THEN amount_kobo ELSE -amount_kobo END)
FROM entries e JOIN accounts a ON a.id = e.account_id WHERE a.code = ?""", (wallet,)).fetchone()[0]
print(f"payee wallet {wallet}: {before:,} kobo before; credited {ra:,} (route A) and {rb:,} (route B); now {after:,}")
print(f"wallet moved by {after - before:,} kobo = {ra + rb:,}: {after - before == ra + rb}")
for code, bal in sorted(xb.balances(db).items()):
print(f" {code:<20}{bal:>16,}")
print("problems per currency:", xb.check_currencies(db))python3 routes.py
python3 check.py --db data/xborder.sqlitepayee wallet wallet:2: 11,714,513 kobo before; credited 55,524,760 (route A) and 58,077,475 (route B); now 125,316,748
wallet moved by 113,602,235 kobo = 113,602,235: True
fx_conv_GHS 0
fx_conv_NGN 0
fx_conv_STBL 0
fx_conv_USD 0
ghs_cash 0
ngn_collections 113,602,235
offramp_receivable 0
stable_wallet 0
usd_nostro 0
problems per currency: []
loan book: 372 loans, 850,258,479 kobo of principal outstanding; checks 7-11 run
card book: 10,680 card attempts, 109 disputes for 91,728,900 kobo; checks 12-15 run
accounts by type (debit-positive kobo): {'asset': 17468657124, 'equity': -5000000000, 'expense': 110590267, 'income': -221782321, 'liability': -12357465070}
settlement_bank in ledger 17,189,646,589 kobo; on the statement 17,192,741,324 kobo
OK: all invariants holdEvery clearing account is back to zero, so both payments finished. The cedi, dollar and token accounts are zero too: the money passed through them. Only the naira account holds anything, 113,602,235 kobo, the sum of both payments (55,524,760 + 58,077,475). The wallet moved by exactly that. check.py still prints OK, because it sums every entry as one number and every transaction here balances in each currency, so it balances in the sum. Hold that thought for the break.
3. Cost both ways, and where the routes cross. Save cost.py. It reads the wallet credits from the ledger, compares them with the model, prices three invoice sizes, and searches for the break-even.
"""All-in cost both ways: from the ledger's wallet credit, and from the route's legs; then where
the two routes cross."""
import sqlite3
import corridor as c
db = sqlite3.connect("data/xborder.sqlite")
def credited(ref):
return db.execute("""SELECT e.amount_kobo FROM entries e JOIN transactions t ON t.id = e.transaction_id
JOIN accounts a ON a.id = e.account_id
WHERE t.external_ref = ? AND a.type = 'liability' AND e.direction = 'credit'""",
(ref + ":credit-payee",)).fetchone()[0]
sent = c.value_kobo("GHS", c.INVOICE_PESEWAS)
for name, ref, fn in (("A correspondent", "XB-A-001", c.route_a), ("B stablecoin", "XB-B-001", c.route_b)):
legs, delivered = fn()
r = credited(ref)
cost = sent - r
print(f"{name}: wallet credited {r:,} kobo; model says {delivered:,} (same: {r == delivered}); "
f"cost {c.naira(round(cost))} = {float(cost / sent) * 100:.2f}% of {c.naira(round(sent))}")
def cost_pct(fn, s=c.INVOICE_PESEWAS, **kw):
_, r = fn(s, **kw)
return float((c.value_kobo("GHS", s) - r) / c.value_kobo("GHS", s)) * 100
print("\ncost by invoice size (flat fees weigh more on small payments):")
print(f" {'invoice':>12} {'route A':>8} {'route B':>8}")
for s in (48_000, 480_000, 4_800_000):
print(f" GH₵{s // 100:>8,} {cost_pct(c.route_a, s):7.2f}% {cost_pct(c.route_b, s):7.2f}%")
a = cost_pct(c.route_a)
for bps in range(0, 5_000):
p = dict(c.ROUTE_B, onramp_spread_bps=bps)
if cost_pct(c.route_b, p=p) >= a:
print(f"\nroute B costs as much as route A once the on-ramp spread reaches {bps} bps (it is {c.ROUTE_B['onramp_spread_bps']} here)")
break
for price in range(c.PAR, 8_000, -1):
if cost_pct(c.route_b, price_bps=price) >= a:
print(f"or once the token's market price at the off-ramp falls to {price} bps of $1.00, "
f"a fall of {c.PAR - price} bps ({(c.PAR - price) / 100:.2f}%)")
breakpython3 cost.pyA correspondent: wallet credited 55,524,760 kobo; model says 55,524,760 (same: True); cost ₦44,752.40 = 7.46% of ₦600,000.00
B stablecoin: wallet credited 58,077,475 kobo; model says 58,077,475 (same: True); cost ₦19,225.25 = 3.20% of ₦600,000.00
cost by invoice size (flat fees weigh more on small payments):
invoice route A route B
GH₵ 480 43.55% 5.42%
GH₵ 4,800 7.46% 3.20%
GH₵ 48,000 3.85% 2.98%
route B costs as much as route A once the on-ramp spread reaches 564 bps (it is 100 here)
or once the token's market price at the off-ramp falls to 9560 bps of $1.00, a fall of 440 bps (4.40%)The ledger and the model agree: the wallet was credited exactly what each route’s legs deliver, and the costs agree with step 1. The size table shows the flat fees. On a GH₵480 invoice the $15.00 intermediary fee is most of the cost, and the table is the reason a single worked example misleads. The last two lines answer the Predict: a fall of 4.40% in the token’s price, or an on-ramp spread of 564 bps, removes the advantage. Change a ROUTE_B input in corridor.py and rerun step 1 and this step: the break-even moves, and so does your conclusion.
4. Break the token route twice. Save breaks.py. It posts three token payments to the same payee, builds the off-ramp’s report with one payment short-paid after a de-peg to $0.97 and one paid three days after it was due, and reconciles day by day.
"""Three token payments, one off-ramp report, two ways to be wrong: a de-peg and a delay.
The off-ramp provider's report is the independent record, like a bank statement. The ledger
credited each payee the quoted naira when the tokens were sent; the report says what was paid."""
import datetime as dt
import corridor as c
import routes
import xbledger as xb
db, wallet = xb.make_copy("data/xborder_breaks.sqlite")
payee = db.execute("SELECT customer_id FROM accounts WHERE code = ?", (wallet,)).fetchone()[0]
D = dt.date(2026, 11, 2) # the day the tokens are sent
GRACE_DAYS = 1 # an item may be this many days late before it is a break
quoted = {}
for n in (1, 2, 3):
quoted[f"XB-B-00{n}"] = routes.post_route_b(db, f"XB-B-00{n}", wallet, payee)
# The off-ramp's report: reference -> (date paid, kobo paid). Built from its own rules, not ours.
legs, _ = c.route_b()
micro = legs[2]["amt_out"]
depeg_gross = c.offramp_kobo(micro, price_bps=9_700) # token at $0.97
depeg_paid = depeg_gross - depeg_gross * c.ROUTE_B["offramp_fee_bps"] // 10_000
report = {"XB-B-001": (D + dt.timedelta(1), quoted["XB-B-001"]), # on time, as quoted
"XB-B-002": (D + dt.timedelta(1), depeg_paid), # paid at a de-pegged price
"XB-B-003": (D + dt.timedelta(4), quoted["XB-B-003"])} # paid three days after it was due
EXPECTED = D + dt.timedelta(1)
settled = set()
def reconcile(today):
print(f"--- reconciling on {today} ---")
for ref, q in quoted.items():
if ref in settled:
continue
line = report.get(ref)
if line and line[0] <= today:
paid_on, paid = line
if paid == q:
print(f" {ref}: matched, {paid:,} kobo paid on {paid_on}")
else:
print(f" {ref}: BREAK short_paid: quoted {q:,}, paid {paid:,}, short {q - paid:,} kobo "
f"({(q - paid) / q * 100:.2f}% of the quote)")
routes.settle_offramp(db, ref, q, paid, f"{paid_on}T10:00:00+01:00")
settled.add(ref)
else:
age = (today - EXPECTED).days
kind = "BREAK late" if age > GRACE_DAYS else "timing, not a break"
print(f" {ref}: not on the off-ramp's report; due {EXPECTED}, {age} day(s) past: {kind}")
reconcile(D + dt.timedelta(1))
reconcile(D + dt.timedelta(2))
reconcile(D + dt.timedelta(3))
reconcile(D + dt.timedelta(4))
db.commit()
bal = xb.balances(db)
print(f"\nfx_gain_loss (debit is a loss): {bal['fx_gain_loss']:,} kobo = {c.naira(bal['fx_gain_loss'])}")
print(f"offramp_receivable still open: {bal['offramp_receivable']:,} kobo")
print(f"naira received: {bal['ngn_collections']:,} kobo; credited to the payee: "
f"{sum(quoted.values()):,} kobo; difference {sum(quoted.values()) - bal['ngn_collections']:,}")
print("problems per currency:", xb.check_currencies(db))python3 breaks.py
python3 check.py --db data/xborder_breaks.sqlite | tail -1--- reconciling on 2026-11-03 ---
XB-B-001: matched, 58,077,475 kobo paid on 2026-11-03
XB-B-002: BREAK short_paid: quoted 58,077,475, paid 56,335,150, short 1,742,325 kobo (3.00% of the quote)
XB-B-003: not on the off-ramp's report; due 2026-11-03, 0 day(s) past: timing, not a break
--- reconciling on 2026-11-04 ---
XB-B-003: not on the off-ramp's report; due 2026-11-03, 1 day(s) past: timing, not a break
--- reconciling on 2026-11-05 ---
XB-B-003: not on the off-ramp's report; due 2026-11-03, 2 day(s) past: BREAK late
--- reconciling on 2026-11-06 ---
XB-B-003: matched, 58,077,475 kobo paid on 2026-11-06
fx_gain_loss (debit is a loss): 1,742,325 kobo = ₦17,423.25
offramp_receivable still open: 0 kobo
naira received: 172,490,100 kobo; credited to the payee: 174,232,425 kobo; difference 1,742,325
problems per currency: []Three payments, two kinds of break. XB-B-002 was paid 1,742,325 kobo short, 3.00% of its quote: the off-ramp sold the tokens at $0.97, the naira paid fell by the same share, and the ledger booked the difference as a loss. Redo it: 58,077,475 − 56,335,150 = 1,742,325. XB-B-003 paid the right amount four days late. It was timing on the due date and the day after, a break on the second day past due, and matched on the third. No amount was wrong, and the payee was credited with naira the company did not yet hold for four days. The last line shows the books are whole: naira received plus the loss equals naira credited, 172,490,100 + 1,742,325 = 174,232,425. A de-peg loss is a cost of crediting early. If you had credited the payee on arrival, the payee would have carried it.
Save mislabel.py. It posts a transaction that balances as numbers and not as money: one million micro-units debited, one million pesewas credited. It tries post() first, then goes round it with SQL, and asks both checkers.
"""The break: a posting that balances as numbers and not as money."""
import xbledger as xb
db, wallet = xb.make_copy("data/mislabel.sqlite")
legs = [("stable_wallet", "debit", 1_000_000), ("ghs_cash", "credit", 1_000_000)] # micro-units against pesewas
try:
xb.post(db, "XB-BAD-1", "2026-11-02T10:00:00+01:00", legs)
except ValueError as e:
print("post() refused:", e)
ids = dict(db.execute("SELECT code, id FROM accounts")) # now go round post(), straight into the tables
cur = db.execute("""INSERT INTO transactions (kind, status, amount_kobo, fee_kobo, rail, external_ref, created_at)
VALUES ('cross_border', 'succeeded', 0, 0, 'internal', 'XB-BAD-1', '2026-11-02T10:00:00+01:00')""")
for code, side, minor in legs:
db.execute("INSERT INTO entries (transaction_id, account_id, direction, amount_kobo, posted_at) VALUES (?, ?, ?, ?, ?)",
(cur.lastrowid, ids[code], side, minor, "2026-11-02T10:00:00+01:00"))
db.commit()
print("inserted one transaction by SQL: 1,000,000 micro-units debited, 1,000,000 pesewas credited")Run python3 mislabel.py, then python3 check.py --db data/mislabel.sqlite | tail -1 and python3 xbledger.py check data/mislabel.sqlite. The first line is post() refused: XB-BAD-1: does not balance in {'STBL': 1000000, 'GHS': -1000000} (debits minus credits, per currency), then the SQL insert message. check.py prints OK: all invariants hold: it adds every entry as one number, finds one million debited and one million credited, and passes it. The per-currency check prints FAIL: 2 (transaction, currency) pairs do not balance, e.g. [(83888, 'GHS', -1000000), (83888, 'STBL', 1000000)]. The ledger in the module 1 project could not hold this error, because it held one currency. The moment you add a second, an invariant that was complete is not complete any more. Add the per-currency check to your own ledger’s test suite before you add the currency.
Template
# Pilot risk assessment: <corridor>, stablecoin leg
Written by <payments PM> with <risk> · Signed by <head of risk and compliance> · Date
Decision needed: <approve / amend / decline> by <date>
## 1. What the pilot is
Corridor, payment sizes, number of payments, dates. Out of scope: <list>
## 2. The flow: who holds what
| Step | Who holds the money or token | Record that proves it |
|---|---|---|
## 3. Cost and time against the current route
| | Current route | Token route | Source (lab line or assumption) |
|---|---|---|---|
Time: <measured or unmeasured, and how the pilot will measure it>
## 4. Risks
| Risk | What happens | Lab figure or assumption | Who carries it |
|---|---|---|---|
De-peg · Issuer · On-ramp and off-ramp · Regulatory status (as the chapter states it) · Reconciliation
## 5. Controls and limits
| Control or limit | Value | Owner |
|---|---|---|
## 6. Stop conditions
| Condition | Who stops the pilot | What happens next |
|---|---|---|
## 7. How this memo could be wrong
<One way, and what would show it>
## 8. Sign-off
<Name, role, date. Conditions attached to the approval.> WORKED EXAMPLE
Wrenpost (about 180 staff). The payments product manager writes this memo with Ebiowei in finance operations and Kelechukwu in billing engineering. The head of risk and compliance signs it. Decision needed: whether to approve a four-week pilot of the token leg on Ghana collections. Out of scope: Ghanaian rules, which the chapter does not cover.
Flow. The customer pays GH₵4,800.00 to the collecting bank (the bank’s statement proves it). The on-ramp holds cedis, then tokens, under its own terms. Wrenpost’s token wallet holds the tokens, and the network records them. The off-ramp holds the tokens, then owes naira. Wrenpost’s naira account holds the result, shown on the off-ramp’s report and the bank statement.
Cost and time. From the lab, the invoice is worth ₦600,000.00 at the mid rate. The correspondent route costs ₦44,752.40 (7.46%) and delivers ₦555,247.60. The token route costs ₦19,225.25 (3.20%) and delivers ₦580,774.75. Every input is invented, so this is a hypothesis. Time is unmeasured: the lab expects the off-ramp the day after the tokens are sent, and prints no timing for the correspondent route.
Risks. A fall to $0.97 shorted one lab payment by 1,742,325 kobo (₦17,423.25, 3.00%). The advantage disappears at a fall of 4.40% or an on-ramp spread of 564 bps. The chapter states that Wrenpost has no ruling on its licensing position, that the SEC’s in-force text was not confirmed, and that sources describe the CBN guidelines differently.
Limits. At most 3 payments open at once, each GH₵4,800.00 or less (assumption). Worst case at a 3.00% fall: 3 × 1,742,325 = 5,226,975 kobo (₦52,269.75). Treasury credits on arrival and reconciles daily. Owner: Ebiowei.
Stop. Pause on a price at or below 9,560 bps, a late break unexplained at the next run, or a clearing account that is not zero after a payment. No payment starts without counsel’s written view. Risk and compliance can stop it.
Could be wrong. Real quotes may sit above the break-even; a quote with an on-ramp spread over 564 bps would show it.
Now you
It is a month later and you are the payments product manager at Owoleaf, which has about 200 people. A merchant customer wants to collect small Ghanaian invoices, GH₵480.00 each, and has asked whether Owoleaf can use a token leg for them. The chapter’s size table is your starting point: at GH₵480 the correspondent route costs 43.55% and the token route 5.42%, because the $15.00 flat fee dominates. Run cost.py with a different invoice size on your own copy if you need more, and rerun breaks.py to see the two breaks. Owoleaf has no ruling on its position, no real quotes and no rule on who carries a price fall. Write the pilot risk assessment memo for one corridor, with limits sized to payments this small. The head of risk and compliance will read it and sign. It supports one decision: whether a four-week pilot starts, on what limits, and under what stop conditions.
Self-check
Wrenpost's Ghana collections are about to grow. Kelechukwu's model shows the token route at about 43% of the correspondent route's all-in cost, on illustrative inputs. Ebiowei has no real quotes, no ruling on Wrenpost's licensing position, and no decision on who carries a price fall. The board wants a decision this month. What do you recommend?
- DOC Guidelines on Operations of Bank Accounts for Virtual Asset Service Providers (CBN, December 2023) Central Bank of Nigeria, 2023
The Nigerian central bank's own text on which institutions may open accounts for virtual asset providers, and on what the banks themselves may not do. Read the eligibility and the conditions. This chapter had only search summaries of it, so check the wording here.
- DOC Amendments to the Rules on Digital Assets (SEC Nigeria) Securities and Exchange Commission, Nigeria, 2024
The Securities and Exchange Commission's own document on digital asset exchanges, intermediaries and custody. Read the definitions and the registration requirements. Check on the SEC's site whether this text is the final version in force, which this chapter could not confirm.
- DOC GENIUS Act, Public Law 119-27 (United States) United States Congress, 2025
The enacted US law on payment stablecoins. Read the sections on reserve backing, redemption and disclosure, and the effective-date provisions that this chapter takes from a summary. Skip the sections on federal and state supervisory structure on a first pass.
- DOC Regulation (EU) 2023/1114 on markets in crypto-assets (Official Journal text) European Parliament and Council, 2023
The EU regulation whose Title IV covers electronic money tokens. Read Articles 48 to 50 on issuance, redemption at par and the ban on interest, and Article 149 for application dates. Skip the titles on other crypto-assets and service providers unless you need them.
- DOC Annual Economic Report 2025, chapter III: The next-generation monetary and financial system (BIS) Bank for International Settlements, 2025
The BIS's argument that stablecoins fail the tests of singleness, elasticity and integrity, and its alternative of tokenised central bank reserves. Read the tests and the sections on cross-border use. It is a sceptic's case, so read an industry reply beside it.
- DOC High-level recommendations for the regulation, supervision and oversight of global stablecoin arrangements: final report (FSB) Financial Stability Board, 2023
The international standard-setters' recommendations to authorities, on governance, reserves, redemption and cross-border cooperation. Read the recommendations list and the redemption and reserve sections. They are not binding rules, and national laws differ from them.
- DOC Targeted update on implementation of the FATF standards on virtual assets and virtual asset service providers (2025) Financial Action Task Force, 2025
The Financial Action Task Force's yearly report on how countries apply anti-money-laundering rules to virtual assets, including the Travel Rule and stablecoin misuse. Read the summary and the country tables. Check for a later update, as the series is annual.
- POST USDC reserve statement, 13 March 2023 (Circle) Circle, 2023
An issuer's own account of the weekend its token traded below its peg after $3.3 billion of reserves sat at a failed bank. A company's statement about itself, so read it for the facts of the reserve and not as an assessment. It is the example for the de-peg break.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.