STAFFCHAPTER 35

Treasury for a lender: liquidity, matching funding to loans, and foreign-currency risk

A lender can be profitable and still run out of cash on a Tuesday. Treasury is the work of knowing which Tuesday, and of not borrowing in a currency its customers do not earn

60 MINLENDING AND CREDITUPDATED 2026-11-14
PREDICT

Owoleaf can borrow $100,000 for a year at 11%, or the same naira at 28%. It sells the dollars at once for naira and will buy them back to repay. By how much must the dollar rise against the naira over the year for the dollar loan to cost more than the naira loan?

Treasury keeps a lender able to pay. Credit decides whom to lend to; finance decides what the lender earned; treasury asks whether cash will arrive before cash must leave, in the currency it must leave in, at a cost the loans can carry. That question hides four risks: liquidity, maturity mismatch, interest rates and foreign currency. The chapter before this one, funding a loan book, covers where the money comes from. This one covers how the lender lives with it.

Profit is not cash

A lender can fail in two ways, and only one of them shows in its accounts. Solvency is whether what it owns is worth more than what it owes. The loan book is the main asset, and the credit chapters (expected loss, portfolio metrics) are about valuing it. Liquidity is whether it can pay what falls due, when it falls due. A lender whose borrowers all pay in 90 days but whose funder wants repayment in 60 is solvent and illiquid: it fails on the day it cannot pay, and the profit and loss account never warned it.

Three things make a lender’s cash different from its profit.

  1. Disbursement is cash out now; the return is cash in later. Growth consumes cash faster than profit makes it.
  2. Income is recognised as earned; cash arrives when borrowers pay. A loan 60 days overdue may still count its interest as income while no cash comes.
  3. Funding has its own calendar. A loan with one repayment at the end (a bullet) puts a large payment on one day, and interest is due monthly whether or not borrowers paid.

Owoleaf has a customer-money version of this problem on the wallet side (settlement float, settlement and payouts). Lending cash is the lender’s own: customer wallet balances are never a funding source for loans, and this chapter funds loans from the sources above and nothing else.

The cash-flow ladder

The basic tool is a cash-flow ladder (also called a liquidity gap table or maturity ladder): a table with one column per time bucket, here months, and one row per kind of cash flow, ending in a running cash balance. You build it from three sources.

  • Collections from the loan schedule. For every instalment not yet paid on the as-of date, the schedule says when it is due and how much. Add overdue amounts to the first bucket, since they are owed now.
  • Funding flows. Interest and repayments on each facility, from its term sheet.
  • Running costs and planned lending. Operating costs per month, and the disbursements the business plans.

The lab uses the book on 30 June 2026, when applications stop in the generated data and the book is at its largest: 2,369 loans with something still unpaid and ₦438,468,149.27 of principal outstanding. Step 2 builds the ladder and cross-checks the total against the tables.

The result is a ladder of the money due in each month from those loans (all figures in ₦ millions):

Month Principal Interest Due
Overdue at 30 June 8.5 0.6 9.1
July 2026 137.3 15.8 153.1
August 98.9 10.8 109.7
September 73.5 7.2 80.7
October 44.7 4.7 49.4
November 35.1 2.9 38.0
December 24.5 1.7 26.2
January to June 2027 15.9 2.0 17.9

Read the shape. Of the ₦438.5m of principal, 31% is due in July and 54% by August’s end. The book’s weighted average life, the average time to repayment weighted by principal, is 2.3 months (0.4 for salary advances, 0.6 for BNPL, buy now pay later, 2.1 for SME loans and 4.1 for personal loans), because of the mix. SME loans are 76% of the outstanding principal (₦333.9m of ₦438.5m), and they run three or six months. A book this short throws off cash quickly, a strength for liquidity and a trap for growth: to keep the book the same size the lender must keep lending, and each month’s collections are mostly spent on the next month’s loans.

This ladder is contractual: every borrower pays on the day. The next section replaces that with what borrowers do.

Contractual, behavioural and stressed

A treasurer uses three versions of the same ladder.

  • Contractual. Everyone pays on the schedule: the upper bound.
  • Behavioural. Collections scaled to the share actually received: cash received in a month divided by cash due in it. The roll and cure rates in portfolio metrics are the detailed version.
  • Stressed. A lower collection rate, a late funder, a delayed drawdown. A stress finds which month breaks first; it does not forecast.

The lab measures the behavioural ratio from the book: cash due from these loans against cash received (every payment, late fees included):

Month Due (₦m) Received (₦m) Share
July 162.2 146.7 90.4%
August 109.7 110.2 100.4%
September 80.7 78.4 97.2%
Three months 352.6 335.3 95.08%

July’s due figure includes the ₦9.1m overdue on 30 June. August is above 100% because borrowers who missed July paid in August, and late fees come on top. The three-month figure, 95.08%, is the ladder’s behavioural assumption. Two cautions follow. A treasurer in June would not have these three months and would use earlier ones; the lab uses them because they are what the data shows, which is hindsight. And 95% is an average over a calm quarter. A salary-advance book can lose a whole employer’s payroll in a month (see employer and payroll lending), and a stress at 80% asks what happens then.

Runway and the ladder under growth

The ladder’s last row is a running cash balance. Its runway is the number of months before it goes below zero. The opening balance has to come from somewhere. In the lab it is the funding less the principal already lent: ₦200m of equity, ₦130m from the bank and $100,000 sold at an illustrative ₦1,500 a dollar (₦150m), less ₦438.5m on the book, which leaves ₦41,531,850.73. Costs are ₦15m a month to run the business, 28% a year on the naira loan paid monthly until it is repaid (₦3.03m a month) and 11% a year on the dollars (₦1.37m).

Step 4 gives three ladders.

  • A. No new lending, schedule paid in full. Cash climbs to ₦384.5m by November as the book runs off. The December bullet takes it to ₦261.3m and it drifts down to ₦162.7m. There is no liquidity problem. There is also no business: the book has shrunk to almost nothing.
  • B. Growth plan, 95.08% collected. New lending is ₦40m in July and ₦10m more each month, reaching ₦150m in June. A month’s new loans come back the next month at 100.5% of what was lent (interest and fees less losses; illustrative). Cash peaks at ₦284.0m in November, falls to ₦149.9m after the December bullet and then drains by about ₦21m to ₦25m a month, to ₦12.0m in June: positive, but thin.
  • C. The same plan at 80% collected. Cash is below zero from April 2027 and reaches −₦61.0m in June.

Ladder C leaves the new loans’ return at 100.5%, so it understates the damage. Both are healthy until the bullet and drained after it by growth, not losses. The bullet takes ₦130m in one month, three times July’s opening cash. A treasury policy that says “hold enough to cover the next bullet” is describing the cash cliff in the ladder.

Matching funding to loans

Maturity matching is arranging for funding to live about as long as the loans it pays for. Two ways of getting it wrong:

  • Funding shorter than the assets is the classic failure. A lender borrows for 90 days, lends for 12 months, and must refinance before its loans have repaid. If the funder will not roll the loan, the lender must sell loans or stop lending. Nothing is wrong with the book.
  • Funding much longer than the assets is expensive: money kept for two years to fund 2.3 months of loans sits idle between loans while interest runs. It buys safety at a cost.

Owoleaf’s liabilities have a weighted average life, ignoring equity, of (130 × 6 + 150 × 24) ÷ 280 = 15.6 months, against 2.3 months for the loans. That looks like the safe direction. A weighted average hides the bullet. What matters is the shape of the repayments, month by month, against the shape of the collections, and the bullet falls in the month when new lending is already ₦90m. A term-out (asking the funder to move the bullet to a later date, or to split it into instalments that follow collections) fixes the shape at little cost to the average.

The break at the end of the lab does that. Moving the bullet to December 2027 lifts the lowest cash in ladder B from ₦12.0m to ₦123.8m and in ladder C from −₦61.0m to ₦50.8m (interest on the loan runs six months longer, and is in the ladder). Nothing about the book changed, but the bullet has only moved past this ladder’s edge.

Concentration. SME loans are 76% of the book, and an SME instalment is large and lumpy. One merchant paying late moves a month’s collections; a ladder listing the ten largest instalments each month shows it.

Liquidity buffers. Many lenders keep an unused committed line or enough cash for a stated number of weeks of outflows. A lender that can halt disbursement the same day needs a smaller buffer, because its largest outflow is under its control. The Basel Committee’s liquidity principles (Reading) are written for banks, but a limit set from stress, and a plan for breaching it, apply at any size.

Interest-rate risk

Interest-rate risk is the chance that the cost of funding rises and the loans cannot reprice. A personal loan at 4.5% a month on the reducing balance is fixed for its life in the lab: the borrower signed an offer. A bank loan priced as a base rate plus a margin floats, and costs more the moment the base rate rises.

The gap is repricing: how fast each side can change. Salary advances reprice after 30 days, when the lender offers the next one at a new price; a 12-month personal loan cannot. Floating funding against fixed-rate loans loses when rates rise.

The lab prices it with the ladder’s own numbers. A basis point is a hundredth of a percentage point: 500 basis points is 5 points. Step 6 shows that if the ₦130m loan floated and rates rose 5 points for a full year (it would have to be rolled over to last that long; the 6-month loan alone would cost half), the cost is 130,000,000 × 0.05 = ₦6.5m, which is 14.3% of the ₦45.6m of interest the book has still to earn. A 10-point rise costs ₦13.0m, or 28.5%. The comparison is rough: the book turns over within months, so a lender that can reprice new loans soon recovers part of it. A lender whose loans are long and fixed cannot.

The tools: match repricing dates (fixed funding for fixed loans), keep the loans short, or hedge. In Nigeria, the sources below say little about hedging a naira interest rate, so ask a dealer what is available.

Foreign-currency risk

Why borrow dollars at all? The coupon is lower, and development lenders and some funds lend in dollars, not naira. The loan book earns naira. That is the currency mismatch: liabilities in one currency, income in another.

What goes wrong is arithmetic. Owoleaf sells $100,000 at ₦1,500 and receives ₦150m. If the dollar later costs ₦1,950, a rise of 30%, it needs ₦195m to buy the dollars back, ₦45m more than it received, whatever the loans earned meanwhile. The dollar interest costs 30% more in naira too. The ₦45m is cash, not an accounting entry.

Two cautions. First, “the naira falls 30%” is ambiguous. If the dollar rises 30%, ₦1,500 becomes ₦1,950. If the naira loses 30% of its dollar value, a dollar costs ₦1,500 ÷ 0.7 = ₦2,143, a rise of 42.9%. This chapter always says how far the dollar rises. Second, the exchange rate in the lab is illustrative, and the table below is a calculation, not a forecast.

Step 5 reproduces the numbers. Compare the dollar loan’s naira cost over one year with the naira loan’s ₦42.0m (28% of ₦150m), if the dollar rises by the stated amount on day one and stays there. Interest is a year of dollar interest at the new rate. Revaluation is the rise in the naira value of the dollars owed.

Dollar rises Interest (₦m) Revaluation (₦m) Dollar loan (₦m) Naira loan (₦m) Extra cost as share of ₦200m equity
0% 16.5 0.0 16.5 42.0 −12.8%
10% 18.2 15.0 33.2 42.0 −4.4%
20% 19.8 30.0 49.8 42.0 3.9%
30% 21.5 45.0 66.5 42.0 12.2%
40% 23.1 60.0 83.1 42.0 20.5%
50% 24.8 75.0 99.8 42.0 28.9%

Break-even is between 10% and 20%: 15.31% = 1.28 ÷ 1.11 − 1. Below it the dollar loan is cheaper. Each extra point of dollar rise costs about ₦1.7m on this facility (₦1.5m of revaluation and ₦0.2m of interest). The payoff is one-sided: the saving at no change is ₦25.5m, the loss at 50% is ₦57.8m, and the loss falls on a company with ₦200m of equity.

The ladder barely notices. In step 6 a 30% rise in the dollar lifts July’s dollar interest from ₦1,374,990 to ₦1,787,487, and ladder C’s June 2027 cash falls by ₦4,949,964 (from −₦61.0m to −₦65.9m). Interest in dollars is small. The danger sits in the bullet: the 2028 repayment of $100,000 costs ₦150m at ₦1,500 and ₦195m at ₦1,950, and it does not appear on this 12-month ladder at all. A liquidity ladder that stops short of the bullet misses the FX risk. Extend the horizon to the longest facility.

The natural defence is to match: borrow in the currency you earn. A naira lender has no natural dollar income, so the remaining tools are to keep the dollar share of funding small against equity, to set an open position limit (the unhedged dollars owed) from a stress like the one above, and to hedge.

Hedging in Nigeria

A hedge fixes today a rate that will apply later. A forward is an agreement to exchange currencies at a set rate on a set date. Non-deliverable means the dollars are not exchanged: the two sides settle the difference between the agreed rate and the market rate in naira. A swap exchanges flows, for example a naira interest stream for a dollar one. The notional is the amount the contract is written on.

What does Nigeria offer a lender? The search results are limited, and this section keeps to them.

A law-firm practice guide (Chambers, Derivatives 2025, Nigeria, updated September 2025) reports that the Central Bank of Nigeria’s framework approves FX options, outright and non-deliverable forwards, FX swaps and cross-currency interest rate swaps, that authorised dealers may offer naira-settled non-deliverable OTC FX futures, that FMDQ offers naira-settled exchange-traded FX futures tracking the dollar-naira rate, and that FX forwards are capped at five years unless an authorised dealer obtains approval for longer. It also calls the market nascentas of 2026-11. This rests on a law-firm summary; the search did not return the CBN guidelines themselves.

FMDQ’s market bulletin MB 38 (dated February 2020) is about the OTC FX futures market. A search summary says it requires OTC FX futures to be backed by eligible underlying transactions, as defined in FMDQ’s standards, and treats certificates of capital importation as eligible hedging underlyingsas of 2026-11. MB 39 is titled Hedging of Deliverable FX Forward Transactions Using OTC FX Futures; the search did not return its content. The bulletins are old and may be superseded: read FMDQ’s current requirements before relying on this summary.

A press report of October 2026, as its title and a search snippet show, describes FMDQ’s chief executive pushing hedging products as the next stage of FX developmentas of 2026-11. A press report is not a rule, and the search found no confirmed launch of any new product. Check FMDQ’s current product list before assuming one exists, and treat naira interest-rate hedging as unconfirmed until a dealer shows you a quote.

What does a hedge cost? A forward rate is not a prediction. In theory it comes from interest-rate parity: the forward dollar price is the spot price times (1 + naira rate) ÷ (1 + dollar rate). With the lab’s 28% and 11%, the one-year premium is 1.28 ÷ 1.11 − 1 = 15.31%. Add an illustrative dealer margin of 1 point and the lender can lock the dollar at ₦1,500 × 1.1631 = ₦1,744.65 a year ahead. A real forward also reflects supply, demand and expectations, and may differ from parity by a lot. Step 5 prints a hedged column on this assumption.

The hedged column is the reason borrowing dollars is not free. Hedged, the dollar loan costs ₦41.0m a year in step 5’s table at no change in the rate, and ₦45.9m if the dollar rises 30% (the interest is still paid at the new rate), against ₦42.0m for the naira loan. Close to the naira loan, not far below it. The ₦25.5m saving at no change in the unhedged column is what the lender earned for carrying the risk. It is not a discount.

Rules on foreign borrowing sit on top.

The CBN’s Fourth Edition Foreign Exchange Manual, which commentary says took effect on 1 June 2026, lists in its contents a memorandum on capital transfers, securities and foreign loans (Memorandum 18); the search did not return its text. Law-firm commentary says inbound capital is registered through an authorised dealer with an electronic certificate of capital importation, and one guide, citing the earlier 2018 manual, says that certificate is the proof needed to repatriate loan repayments and interest through the official marketas of 2026-11. Those are secondary summaries. Read the memorandum and ask the authorised dealer (the bank handling the transfer) before signing a facility: a dollar loan that cannot be serviced through the official market carries a different risk from the one in this chapter.

What a treasury policy fixes

A policy turns the ladder into limits that someone owns. A short one has five lines.

  • A liquidity floor: cash and unused committed lines of at least a stated number of weeks of outflows, tested on the stressed ladder, not the contractual one.
  • A bullet rule: no repayment larger than a stated share of cash in a single month unless refinancing is agreed three months before.
  • A currency limit: unhedged dollars owed not above a stated share of equity, sized from the step 5 stress (a 30% rise costs 12.2% of equity more than naira funding).
  • A repricing limit: floating-rate funding not above a stated share of the book.
  • Reporting: the ladder monthly to the board’s risk committee, cash daily to treasury. Who may breach a limit is in credit risk governance.

The policy is a decision by named people, so an assistant’s draft is not the policy. None of it says what to borrow or from whom.

Where it goes wrong

  • A ladder that stops before the longest facility. The 12-month ladder shows ₦1.4m a month of dollar interest and hides a ₦195m bullet in 2028 at a 30% rise.
  • Using profit as a cash forecast. Interest accrued on loans 90 days overdue is paper income.
  • Contractual collections only. The ratio is 95.08% in a calm quarter; a payroll employer failing lowers it far more.
  • A weighted average life that hides the cliff. 15.6 months of funding life sounds safe and contains a ₦130m bullet in month 6.
  • Counting the dollar saving as profit. The ₦25.5m at no change is a payment for risk; at a 30% rise the sign flips.
  • Reading a percentage move both ways. A naira that loses 30% is a dollar up 42.9%, not 30%.
  • A hedge nobody can quote. A product in a guide may not trade at the size and tenor needed.
  • Floats for money. The lab keeps kobo as integers; floating point drifts, as money in software shows.
LAB Build a cash-flow ladder on the loan book and stress a dollar facility ~45 MIN
YOU NEEDPython 3.9 or later (standard library only)labs/finance with the scale 1 book built into data1About 720 MB of disk for data1 and about 40 seconds to build itNo Docker, no packages, no mock services

You work in labs/finance. Every script reads data1/finance.sqlite and writes nothing. Money is integer kobo throughout; every input about funding, costs and the exchange rate is illustrative, set at the top of treasury.py, and yours to change.

1. Build and check the scale 1 book. If data1/ does not exist, build it with the README’s command (about 40 seconds). Then count the loans.

cd labs/finance
python3 generate.py --scale 1 --out data1 && python3 loans.py --out data1 \
  && python3 cards.py --out data1 && python3 collect.py --out data1
python3 - <<'PY'
import sqlite3
db = sqlite3.connect("data1/finance.sqlite")
print(db.execute("SELECT COUNT(*) FROM loans").fetchone()[0], "loans")
print(db.execute("SELECT MIN(disbursed_at), MAX(disbursed_at) FROM loans").fetchone())
PY
3645 loans
('2026-01-12', '2026-06-28')

The last loan was disbursed on 28 June, so on 30 June the book has reached its largest size. The ladder looks forward from there.

2. Save the inputs and ladder the schedule. Save this as treasury.py. It holds the illustrative funding (the ₦1,500 a dollar rate included) and one function that finds every instalment still unpaid on 30 June (a part-payment is taken as interest first, as the book does).

"""Shared inputs for the treasury lab: the book as it stood on 30 June 2026, and illustrative funding."""
import sqlite3

DB = "data1/finance.sqlite"
ASOF = "2026-06-30"                       # applications stop; the book is at its largest
MONTHS = [f"2026-{m:02d}" for m in range(7, 13)] + [f"2027-{m:02d}" for m in range(1, 7)]

# ---- ILLUSTRATIVE funding and costs (not any lender's, bank's or regulator's). Money in kobo.
NAIRA = 100
USD_KOBO = 150_000                        # ILLUSTRATIVE rate: ₦1,500 per $1, in kobo per dollar
EQUITY = 200_000_000 * NAIRA              # ₦200m of shareholders' money
NGN_LOAN = 130_000_000 * NAIRA            # ₦130m bank term loan, one bullet repayment at month 6 (Dec 2026)
NGN_LOAN_RATE_BPS = 2800                  # 28% a year, interest paid monthly
NGN_LOAN_DUE = "2026-12"
USD_LOAN_CENTS = 100_000 * 100            # $100,000, bullet in 2028 (beyond this ladder)
USD_RATE_BPS = 1100                       # 11% a year in dollars, interest paid monthly
OPEX_MONTH = 15_000_000 * NAIRA           # ₦15m a month to run the lending business


def conn():
    return sqlite3.connect(DB)


def naira(kobo):
    sign = "-" if kobo < 0 else ""
    kobo = abs(kobo)
    return f"{sign}₦{kobo // 100:,}.{kobo % 100:02d}"


def m(kobo):
    """Millions of naira to one decimal, for ladders, in whole-number arithmetic."""
    sign = "-" if kobo < 0 else ""
    tenths = (abs(kobo) + 5_000_000) // 10_000_000
    return f"{sign}{tenths // 10:,}.{tenths % 10}"


def book_at_asof(db):
    """Outstanding principal at ASOF, and every unpaid instalment as (loan, product, due, principal, interest)."""
    paid = {}
    for loan_id, inst, amt, late in db.execute(
            "SELECT loan_id, instalment, amount_kobo, late_fee_kobo FROM repayments WHERE paid_at <= ?", (ASOF,)):
        paid[(loan_id, inst)] = paid.get((loan_id, inst), 0) + amt - late
    rows = []
    for lid, prod, inst, due, p, i in db.execute(
            """SELECT s.loan_id, l.product, s.instalment, s.due_date, s.principal_kobo, s.interest_kobo
               FROM schedule s JOIN loans l ON l.id = s.loan_id
               WHERE l.disbursed_at <= ? ORDER BY s.loan_id, s.instalment""", (ASOF,)):
        got = paid.get((lid, inst), 0)
        if got >= p + i:
            continue
        # a part-payment goes to interest first, as the book does
        gi = min(got, i)
        rows.append((lid, prod, due, p - (got - gi), i - gi))
    return rows

Then save buckets.py, which puts the unpaid instalments into month buckets, checks the total against the tables and finds the weighted average life.

from datetime import date
from treasury import *

db = conn()
rows = book_at_asof(db)
buckets = {"overdue": [0, 0], **{mth: [0, 0] for mth in MONTHS}, "later": [0, 0]}
for lid, prod, due, p, i in rows:
    k = "overdue" if due <= ASOF else (due[:7] if due[:7] in buckets else "later")
    buckets[k][0] += p
    buckets[k][1] += i
principal = sum(v[0] for v in buckets.values())

# An independent check: principal lent, less principal repaid by ASOF, straight from the tables.
check = db.execute("""SELECT SUM(l.principal_kobo) - COALESCE((SELECT SUM(r.principal_kobo) FROM repayments r
       JOIN loans x ON x.id = r.loan_id WHERE x.disbursed_at <= ? AND r.paid_at <= ?), 0)
       FROM loans l WHERE l.disbursed_at <= ?""", (ASOF, ASOF, ASOF)).fetchone()[0]
print("outstanding principal at", ASOF, naira(principal), "on", len({r[0] for r in rows}), "loans")
print("from the tables directly:        ", naira(check), "| match:", principal == check)
print(f"\n{'month':8} {'principal':>10} {'interest':>9} {'due':>9}   (₦ millions)")
for k, (p, i) in buckets.items():
    print(f"{k:8} {m(p):>10} {m(i):>9} {m(p + i):>9}")

a = date.fromisoformat(ASOF)
life = {}
for _, prod, d, p, _ in rows:
    months = max(0, (date.fromisoformat(d) - a).days) / 30.4
    for key in (prod, "ALL"):
        w = life.setdefault(key, [0, 0.0])
        w[0] += p
        w[1] += p * months
print("\nweighted average life of the principal (months), and the principal (₦ millions)")
for key, (p, pm) in sorted(life.items()):
    print(f"{key:5} {pm / p:4.1f}  {m(p):>7}")
python3 buckets.py
outstanding principal at 2026-06-30 ₦438,468,149.27 on 2369 loans
from the tables directly:         ₦438,468,149.27 | match: True

month     principal  interest       due   (₦ millions)
overdue         8.5       0.6       9.1
2026-07       137.3      15.8     153.1
2026-08        98.9      10.8     109.7
2026-09        73.5       7.2      80.7
2026-10        44.7       4.7      49.4
2026-11        35.1       2.9      38.0
2026-12        24.5       1.7      26.2
2027-01         4.7       0.8       5.4
2027-02         3.4       0.5       3.9
2027-03         3.1       0.4       3.5
2027-04         2.0       0.2       2.2
2027-05         1.7       0.1       1.8
2027-06         1.0       0.0       1.1
later           0.0       0.0       0.0

weighted average life of the principal (months), and the principal (₦ millions)
ALL    2.3    438.5
BNPL   0.6     16.1
PL     4.1     63.3
SAL    0.4     25.2
SME    2.1    333.9

The two outstanding figures match, which is the check that the ladder holds the whole book. July holds ₦153.1m of the ₦484.1m due in all (principal ₦438.5m plus interest). The weighted average life is 2.3 months, and 76% of the principal is SME (₦333.9m).

3. Measure collections against the schedule. Add these functions to the end of treasury.py (keep what is there). They give the contractual cash per month, the cash received, the opening cash and the funding payments.

def contractual_by_month(db):
    """Cash the schedule says is due in each month: overdue amounts arrive in the first month."""
    due = {mth: 0 for mth in MONTHS}
    for lid, prod, d, p, i in book_at_asof(db):
        k = MONTHS[0] if d <= ASOF else d[:7]
        if k in due:
            due[k] += p + i
    return due


def received_by_month(db):
    """Cash actually received in each month on loans disbursed by ASOF (the book is seen to 28 October)."""
    got = {}
    for mth, amt in db.execute(
            """SELECT substr(r.paid_at, 1, 7), SUM(r.amount_kobo) FROM repayments r
               JOIN loans l ON l.id = r.loan_id
               WHERE l.disbursed_at <= ? AND r.paid_at > ? GROUP BY 1""", (ASOF, ASOF)):
        got[mth] = amt
    return got


def opening_cash(db):
    out = sum(p for _, _, _, p, _ in book_at_asof(db))
    return EQUITY + NGN_LOAN + USD_LOAN_CENTS * USD_KOBO // 100 - out


def funding_outflows(usd_kobo=USD_KOBO):
    """Interest on both loans each month (on the naira loan until it is repaid), and the naira bullet; dollars converted at usd_kobo kobo per dollar."""
    rows = {}
    for mth in MONTHS:
        ngn_int = NGN_LOAN * NGN_LOAN_RATE_BPS // 10_000 // 12 if mth <= NGN_LOAN_DUE else 0   # none once repaid
        usd_int = USD_LOAN_CENTS * USD_RATE_BPS // 10_000 // 12 * usd_kobo // 100
        rows[mth] = (ngn_int, usd_int, NGN_LOAN if mth == NGN_LOAN_DUE else 0)
    return rows

Save efficiency.py and run it.

from treasury import *
db = conn()
due, got = contractual_by_month(db), received_by_month(db)
for mth in MONTHS[:3]:
    print(mth, "due", m(due[mth]), "received", m(got[mth]), f"efficiency {got[mth] / due[mth]:.1%}")
bps = sum(got[x] for x in MONTHS[:3]) * 10_000 // sum(due[x] for x in MONTHS[:3])
print(f"July to September together: {bps / 100:.2f}% ({bps} basis points)")
print("opening cash:", naira(opening_cash(db)))
python3 efficiency.py
2026-07 due 162.2 received 146.7 efficiency 90.4%
2026-08 due 109.7 received 110.2 efficiency 100.4%
2026-09 due 80.7 received 78.4 efficiency 97.2%
July to September together: 95.08% (9508 basis points)
opening cash: ₦41,531,850.73

The share is 95.08% over the three months, or 9,508 basis points. It includes late fees, which are cash. July’s 90.4% is the weakest month; August’s 100.4% is borrowers catching up. Opening cash is ₦200m + ₦130m + ₦150m less ₦438.5m of principal lent.

4. Build the ladder. Save ladder.py. Three scenarios: the schedule paid in full with no new lending (A), the growth plan at the 9,508 basis points measured in step 3 (B), and the same plan at 80% (C). A cohort of new loans returns 100.5% of what was lent one month later.

import sys
from treasury import *

# ILLUSTRATIVE growth plan: ₦40m of new loans in July, ₦10m more each month after. A cohort comes back the
# next month at 100.5% of what was lent (interest and fees, less what is never repaid).
NEW_START, NEW_STEP, NEW_BACK_BPS = 40_000_000 * NAIRA, 10_000_000 * NAIRA, 10_050


def ladder(db, efficiency_bps, growth, usd_kobo=USD_KOBO):
    due = contractual_by_month(db)
    out = funding_outflows(usd_kobo)
    cash = opening_cash(db)
    rows, last = [], 0
    for k, mth in enumerate(MONTHS):
        inflow = due[mth] * efficiency_bps // 10_000 + last * NEW_BACK_BPS // 10_000
        ngn_int, usd_int, bullet = out[mth]
        new_lending = (NEW_START + NEW_STEP * k) if growth else 0
        net = inflow - OPEX_MONTH - ngn_int - usd_int - bullet - new_lending
        cash += net
        last = new_lending
        rows.append((mth, inflow, OPEX_MONTH + ngn_int + usd_int, bullet, new_lending, net, cash))
    return rows


def show(title, rows):
    print(title)
    print(f"{'month':8} {'in':>8} {'costs':>7} {'bullet':>7} {'new':>6} {'net':>8} {'cash':>8}   (₦ millions)")
    for mth, i, c, b, n, net, cash in rows:
        print(f"{mth:8} {m(i):>8} {m(c):>7} {m(b):>7} {m(n):>6} {m(net):>8} {m(cash):>8}" + ("  <-- below zero" if cash < 0 else ""))
    low = min(rows, key=lambda r: r[6])
    first = next((r[0] for r in rows if r[6] < 0), None)
    print("lowest cash:", low[0], naira(low[6]), "| first month below zero:", first or "none in these 12", "\n")


if __name__ == "__main__":
    db = conn()
    show("A. Schedule paid in full, no new lending", ladder(db, 10_000, False))
    show("B. 95.1% collected (the July to September rate), new lending", ladder(db, 9_508, True))
    show("C. 80% collected, new lending", ladder(db, 8_000, True))
python3 ladder.py
A. Schedule paid in full, no new lending
month          in   costs  bullet    new      net     cash   (₦ millions)
2026-07     162.2    19.4     0.0    0.0    142.8    184.3
2026-08     109.7    19.4     0.0    0.0     90.3    274.7
2026-09      80.7    19.4     0.0    0.0     61.3    336.0
2026-10      49.4    19.4     0.0    0.0     30.0    365.9
2026-11      38.0    19.4     0.0    0.0     18.6    384.5
2026-12      26.2    19.4   130.0    0.0   -123.2    261.3
2027-01       5.4    16.4     0.0    0.0    -11.0    250.3
2027-02       3.9    16.4     0.0    0.0    -12.5    237.9
2027-03       3.5    16.4     0.0    0.0    -12.9    225.0
2027-04       2.2    16.4     0.0    0.0    -14.2    210.8
2027-05       1.8    16.4     0.0    0.0    -14.6    196.2
2027-06       1.1    16.4     0.0    0.0    -15.3    180.9
lowest cash: 2027-06 ₦180,905,589.60 | first month below zero: none in these 12 

B. 95.1% collected (the July to September rate), new lending
month          in   costs  bullet    new      net     cash   (₦ millions)
2026-07     154.2    19.4     0.0   40.0     94.8    136.3
2026-08     144.5    19.4     0.0   50.0     75.1    211.5
2026-09     127.0    19.4     0.0   60.0     47.6    259.1
2026-10     107.3    19.4     0.0   70.0     17.9    276.9
2026-11     106.5    19.4     0.0   80.0      7.1    284.0
2026-12     105.3    19.4   130.0   90.0   -134.1    149.9
2027-01      95.6    16.4     0.0  100.0    -20.8    129.1
2027-02     104.2    16.4     0.0  110.0    -22.2    106.9
2027-03     113.9    16.4     0.0  120.0    -22.5     84.4
2027-04     122.7    16.4     0.0  130.0    -23.7     60.7
2027-05     132.3    16.4     0.0  140.0    -24.0     36.7
2027-06     141.7    16.4     0.0  150.0    -24.7     12.0
lowest cash: 2027-06 ₦12,039,167.51 | first month below zero: none in these 12 

C. 80% collected, new lending
month          in   costs  bullet    new      net     cash   (₦ millions)
2026-07     129.8    19.4     0.0   40.0     70.3    111.9
2026-08     128.0    19.4     0.0   50.0     58.6    170.5
2026-09     114.8    19.4     0.0   60.0     35.4    205.9
2026-10      99.8    19.4     0.0   70.0     10.4    216.3
2026-11     100.7    19.4     0.0   80.0      1.3    217.6
2026-12     101.3    19.4   130.0   90.0   -138.1     79.5
2027-01      94.8    16.4     0.0  100.0    -21.6     58.0
2027-02     103.6    16.4     0.0  110.0    -22.7     35.2
2027-03     113.3    16.4     0.0  120.0    -23.0     12.2
2027-04     122.4    16.4     0.0  130.0    -24.0    -11.8  <-- below zero
2027-05     132.1    16.4     0.0  140.0    -24.3    -36.1  <-- below zero
2027-06     141.5    16.4     0.0  150.0    -24.8    -61.0  <-- below zero
lowest cash: 2027-06 -₦60,959,134.20 | first month below zero: 2027-04 

Check one row by hand. In July of A, collections are ₦162.2m, costs are ₦15m + ₦3.03m + ₦1.37m = ₦19.4m, and the net is ₦142.8m; opening cash of ₦41.5m makes ₦184.3m. The bullet appears only in December, and the naira interest stops after it (₦16.4m of costs from January). B stays positive, at ₦12.0m in June 2027; C is below zero from April.

5. Stress the dollar facility. Save fx.py. It computes a year’s naira cost of the dollar loan if the dollar rises by a given amount on day one, the same naira borrowed at 28%, a forward-hedged cost and the break-even.

from treasury import *

USD_PRINCIPAL = USD_LOAN_CENTS * USD_KOBO // 100          # naira received when the dollars were sold
DEALER_PREMIUM_BPS = 100                                   # ILLUSTRATIVE: a dealer's margin on a forward, 1 point


def unhedged_year(dep_bps):
    """Naira cost of the dollar loan over one year if the dollar rises dep_bps at once and stays there:
    a year of dollar interest at the new rate, plus the rise in the naira value of the dollars owed."""
    rate = USD_KOBO * (10_000 + dep_bps) // 10_000
    interest = USD_LOAN_CENTS * USD_RATE_BPS // 10_000 * rate // 100
    revaluation = USD_LOAN_CENTS * rate // 100 - USD_PRINCIPAL
    return interest, revaluation


NGN_YEAR_COST = USD_PRINCIPAL * NGN_LOAN_RATE_BPS // 10_000          # the same naira, borrowed in naira
# One-year forward by covered interest parity: spot x (1 + naira rate) / (1 + dollar rate), plus the dealer's margin.
FWD_BPS = (10_000 + NGN_LOAN_RATE_BPS) * 10_000 // (10_000 + USD_RATE_BPS) - 10_000 + DEALER_PREMIUM_BPS

if __name__ == "__main__":
    print("dollar facility:", naira(USD_PRINCIPAL), "at", naira(USD_KOBO), "a dollar; same naira at 28%:", naira(NGN_YEAR_COST))
    print(f"one-year forward premium: {FWD_BPS/100:.2f}% (parity {FWD_BPS/100 - 1:.2f}% + 1.00% margin)")
    be = (10_000 + NGN_LOAN_RATE_BPS) * 10_000 // (10_000 + USD_RATE_BPS) - 10_000
    print(f"break-even depreciation, unhedged against naira borrowing: {be/100:.2f}%")
    print(f"{'dollar up':>11} {'interest':>8} {'reval':>8} {'unhedged':>9} {'hedged':>8} {'naira loan':>10} {'extra/equity':>12}  (₦ millions)")
    for dep in (0, 1000, 2000, 3000, 4000, 5000):
        i, rv = unhedged_year(dep)
        un = i + rv
        # hedged: the principal is fixed at the forward rate, interest is paid at the rate then ruling
        hedged = i + USD_PRINCIPAL * FWD_BPS // 10_000
        print(f"{dep/100:>10.0f}% {m(i):>8} {m(rv):>8} {m(un):>9} {m(hedged):>8} {m(NGN_YEAR_COST):>10} {(un - NGN_YEAR_COST) / EQUITY:>12.1%}")
python3 fx.py
dollar facility: ₦150,000,000.00 at ₦1,500.00 a dollar; same naira at 28%: ₦42,000,000.00
one-year forward premium: 16.31% (parity 15.31% + 1.00% margin)
break-even depreciation, unhedged against naira borrowing: 15.31%
  dollar up interest    reval  unhedged   hedged naira loan extra/equity  (₦ millions)
         0%     16.5      0.0      16.5     41.0       42.0       -12.8%
        10%     18.2     15.0      33.2     42.6       42.0        -4.4%
        20%     19.8     30.0      49.8     44.3       42.0         3.9%
        30%     21.5     45.0      66.5     45.9       42.0        12.2%
        40%     23.1     60.0      83.1     47.6       42.0        20.5%
        50%     24.8     75.0      99.8     49.2       42.0        28.9%

The break-even is 15.31%, as the Predict question showed. Unhedged, the dollar loan is ₦25.5m cheaper at no change in the rate and ₦57.8m dearer at 50% (99.8 against 42.0). The hedged column stays within ₦1.0m to ₦7.2m of the naira loan: the dollar loan with the hedge is the naira loan, near enough.

6. Look at interest rates and at what the 12-month ladder cannot see. Save rates.py.

from treasury import *
from ladder import ladder

db = conn()
# 1. Ladder C again, with the naira 30% weaker (₦1,950 a dollar) from July. Only the dollar interest changes.
base = ladder(db, 8_000, True)
weak = ladder(db, 8_000, True, usd_kobo=USD_KOBO * 130 // 100)
print("dollar interest in July:", naira(funding_outflows()["2026-07"][1]), "->", naira(funding_outflows(USD_KOBO * 130 // 100)["2026-07"][1]))
print("cash at June 2027:", naira(base[-1][6]), "->", naira(weak[-1][6]), "| difference", naira(weak[-1][6] - base[-1][6]))

# 2. A rate shock on the floating-rate naira loan, against the interest the book still has to earn.
interest_due = sum(i for _, _, _, _, i in book_at_asof(db))
print("interest still to come on the book:", naira(interest_due))
for shock in (300, 500, 1000):
    extra = NGN_LOAN * shock // 10_000
    print(f"+{shock // 100} points for a year on the naira loan: {naira(extra)} = {extra / interest_due:.1%} of it")
python3 rates.py
dollar interest in July: ₦1,374,990.00 -> ₦1,787,487.00
cash at June 2027: -₦60,959,134.20 -> -₦65,909,098.20 | difference -₦4,949,964.00
interest still to come on the book: ₦45,605,469.58
+3 points for a year on the naira loan: ₦3,900,000.00 = 8.6% of it
+5 points for a year on the naira loan: ₦6,500,000.00 = 14.3% of it
+10 points for a year on the naira loan: ₦13,000,000.00 = 28.5% of it

A 30% rise in the dollar adds only ₦412,497 to July’s dollar interest and ₦4.9m to ladder C over the year. The ₦45m that matters, the revaluation of the 2028 bullet, is not in the ladder. The rate shock on the floating naira loan is bigger: +5 points costs ₦6.5m, 14.3% of the ₦45.6m of interest the book still has to earn.

7. Add a stress of your own. Lengthen the ladder to 24 months or add the ten largest instalments by month. Decide what a treasurer would want to see first.

Move the bullet. In treasury.py change NGN_LOAN_DUE = "2026-12" to "2027-12" (a term-out: the bank agrees to a 12-month bullet) and run ladder.py again. The December cliff goes, and ladder C, which was below zero from April, stays above zero for all twelve months:

B. lowest cash: 2027-06 ₦123,839,167.53 | first month below zero: none in these 12
C. lowest cash: 2027-06 ₦50,840,865.82 | first month below zero: none in these 12

Nothing about the loans changed. Only the shape of one repayment moved, and the bullet now sits past the ladder’s end, so extend the ladder to 24 months and see it. Now break it the other way: set the bullet to "2026-08", a loan repaid after two months, and find the month ladder C first goes below zero (the answer is May 2027, -₦48,825,800.88 in June: repaying early saves interest but does not remove the shortfall).

ARTEFACT Write the liquidity forecast and asset-liability report ~50 MIN
YOU PRODUCEA liquidity forecast and asset-liability report

Template

# Liquidity forecast and asset-liability report: <lender>, as at <date>
Prepared by <treasury analyst>. Signed by <head of funding or CFO>, for <board risk committee>.

## 1. Forecast (<weeks 1-13 by week, then by month>)
| Period | Collections in | Costs and interest | Funding repayments | New lending | Net | Cash at end |
Cases: <contractual or base>, <behavioural: collection share and its source>, <stressed: share and why>.
Opening cash: <kobo> (<how it is built>). First period below zero in each case: <period or none>.

## 2. Gaps
| Period | Case | Size (₦) | Cause |
Funding life against asset life: <months> against <months>, and what the average hides.

## 3. Foreign-currency exposure
Dollars owed: <amount>, due <date>. Rate used: <rate> (assumed). Break-even rise in the dollar: <%>.
Cost of a <n>% rise: <₦>, <% of equity>. What lies beyond this forecast's horizon: <item>.

## 4. Limits
| Limit | Policy wording | Position now | Breached? |

## 5. Actions
| Action | Owner | By when | Effect on the forecast |

## 6. How this could be wrong
<one way, and what would show it>

## 7. Decision and sign-off
Decision needed: <what, from whom, by when>. Out of scope: <what this report does not cover>.
Prepared <name, date>. Approved <name, date>.
WORKED EXAMPLE

Okezie, a treasury analyst at Owoleaf (200 people), writes this report each month; this one is as at 30 June 2026. Olanrewaju, who runs funding, signs it and takes it to the board’s risk committee. All figures are the lab’s illustrative ones, and the buckets are months because that is what the lab prints; a real forecast splits the first 13 weeks into weeks.

Forecast. Opening cash is ₦41,531,850.73. In ladder B (growth plan, 95.08% collected) cash climbs to ₦284.0m in November, falls to ₦149.9m after the December bullet and ends June 2027 at ₦12.0m: positive but thin. In ladder C (80% collected) cash goes below zero in April 2027 and reaches −₦61.0m in June.

Gaps. December is the widest: net −₦134.1m in B, from the ₦130.0m bullet and ₦90.0m of planned lending. Funding lives 15.6 months against 2.3 for the loans, but that average hides the bullet.

FX. $100,000 sold at ₦1,500 (assumed) gave ₦150m. The unhedged break-even is a 15.31% rise in the dollar. At 30% the dollar loan costs ₦66.5m a year against ₦42.0m for naira, which is 12.2% of equity more (₦45.0m of it revaluation). The 2028 repayment, ₦150m at ₦1,500 and ₦195m at ₦1,950, lies beyond this ladder.

Limits. Bullet rule: no large repayment unless refinancing is agreed three months before. The ₦130.0m bullet is more than three times opening cash and no refinancing is agreed. Not yet breached, but it will be on 30 September unless the bank agrees.

Actions. Okezie asks the bank to term out the bullet to December 2027 by 31 July. With that, B’s lowest cash is ₦123.8m and C’s ₦50.8m.

Could be wrong. The 95.08% comes from three calm months, seen in hindsight. A failed payroll employer would lower it, and ladder C shows the result.

Decision. Olanrewaju approves the request to the bank. Out of scope: the 2028 repayment, and interest-rate hedging.

Now you

You are treasury analyst at a salary-advance lender in Abuja, as at the end of a quarter. Its facts, all illustrative: ₦60m of equity, a ₦45m bank loan repayable in one payment in week 9 (month 3), and a $30,000 facility at 10% a year against 26% for naira, sold at ₦1,500 a dollar and repayable in 2028. Opening cash is ₦18m, costs are ₦6m a month, and planned new lending is ₦25m a month. Collections ran at 92% of the schedule over the last three months; the schedule gives ₦40m due in month 1, ₦30m in month 2 and ₦22m in month 3. Assume, as the chapter does, that a month’s new loans come back at 100.5% the month after. Rebuild the ladder for three months, in a spreadsheet or in ladder.py, run a case at 92% and one at 75%, and take the FX break-even from the chapter’s formula (1 plus the naira rate, divided by 1 plus the dollar rate, less one). Your report goes to the chief financial officer, who decides whether to ask the bank to term out the loan before week 9.

Self-check

DECIDE

Okezie's ladder C shows cash below zero from April 2027, after a ₦130m bullet in December that the growth plan cannot cover. Collections run at 95% in a normal quarter. Olanrewaju has four options for the next board meeting.

READING
  1. DOC
    Principles for Sound Liquidity Risk Management and Supervision (BCBS 144) Basel Committee on Banking Supervision, 2008

    The standard on managing liquidity risk, written for banks. Read the principles on risk tolerance, stress testing and contingency funding, and apply the thinking to a lender's ladder. Skip the sections on intraday liquidity and supervisory duties; the rules are for banks, not for lenders of this size.

  2. DOC
    Interest rate risk in the banking book (BCBS d368) Basel Committee on Banking Supervision, 2016

    The Basel standard on repricing risk, with its shock scenarios and economic-value measures. Read the sections on identifying and measuring the risk, then compare its shock scenarios with the simple rate shocks in step 6. The standard is for banks, and the Basel Framework now carries its current text.

  3. DOC
    Nigeria: Derivatives 2025 Chambers and Partners, 2025

    The law-firm practice guide this chapter relies on for the hedging instruments approved in Nigeria, their tenors and the exchanges. Read the sections on products and regulation. It is a commercial guide and not the rule: check the CBN and FMDQ documents it describes.

  4. DOC
    MB 38: Additional clarifications on and new requirements of the OTC FX futures market FMDQ

    The exchange's own bulletin on OTC FX futures, dated February 2020. Read what counts as an eligible underlying transaction. It may have been superseded, so check FMDQ's current requirements.

  5. DOC
    MB 39: Hedging of deliverable FX forward transactions using OTC FX futures FMDQ

    The companion bulletin on hedging deliverable FX forwards with OTC FX futures. Read it for the mechanics a dealer may describe. It is old, so check it is still in force.

  6. DOC
    FMDQ Thought Leadership Series 1 FMDQ, 2021

    An exchange paper on the derivatives market in Nigeria, which argues there are hedging opportunities for corporates and government. Read it for how the market describes itself. It is the exchange's view, so weigh it as such.

  7. DOC
    CBN Foreign Exchange Manual, Fourth Edition Central Bank of Nigeria, 2026

    The central bank's manual, whose contents list Memorandum 18 on capital transfers, securities and foreign loans. Read that memorandum before signing a dollar facility and check what it says about registration and repayment. Skip the memoranda on other flows.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: Licences and structures: MFB, finance company, partnerships →