Research sequence B · Agent-based simulation

In a crisis digital money

Model v0.1 · NetLogo 7.0.4

How to use it?

  1. Choose the parameters, then press Setup .
  2. Run / stop to proceed. The crisis news arrives from step 10 onwards.
  3. Keep the same random seed, change one parameter, and set up the model again.

Model buttons and indicators are in English; the NetLogo Web tools menu may be in English. Amounts are model units; a step is not a day or hour. All initial values and behavioural coefficients are illustrative.

Try the model

Green cells shift towards CBDC, bronze cells towards cash. The colour of the banks changes with reserve stress. The graph shows the totals for deposits, CBDC and cash.

Download the NetLogo model · Method and assumptions · Experiment outputs

On narrow screens you can scroll down to the controls. The large network view is easier to examine on a desktop.

Three comparisons

  1. CBDC on / off: compare the payment options under the same crisis, seed and cash capacity.
  2. Limit 10 / 50 / unlimited: keep the other settings fixed. Look at the deposit graph, the shift to cash and the households at the limit.
  3. Social influence 0 / 0.8: examine how neighbours' decisions spread at the same crisis intensity.

What is happening inside?

  1. Initial state: each household receives 80 to 120 units of deposits and a different decision threshold. The share of bank deposits you select starts as reserves, and the remainder as fixed loan assets.
  2. News and neighbours: the crisis news takes effect from step 10. The household considers the intensity of the news, its neighbours who converted in the previous step, and bank stress.
  3. Choice: CBDC access, the gap to the limit and the privacy/redress scenario affect the target instrument. If CBDC is not chosen, cash becomes the alternative.
  4. Realisation: The decision does not mean the conversion has taken place. The bank reserve, the CBDC limit and the cash service quota limit the amount.
  5. Feedback: conversion reduces both deposits and reserves. When the reserve-to-deposit ratio falls below 8%, the bank is treated as stressed; this information feeds into the decision at the next step.

What does each indicator say?

Outputs on the model screen
IndicatorHow to read it
Deposits, CBDC, cashShows in which instrument household wealth is held. The sum of the three is conserved.
Stressed banksThe number of banks whose reserve-to-deposit ratio is below the 8% threshold in the model. It is not an indicator of actual bank failure.
Share at the limitThe proportion of households that have reached the CBDC holding limit. When the limit is 0, this indicator counts everyone as at the limit; it should not be read as CBDC usage.
Unmet conversion at this stepThe difference between the conversion demand at that step and the amount actually realised. It is not a cumulative loss or a count of unique individuals.

Where does the gap in a chart come from?

This version assumes faster transfers to CBDC than to cash. Comparing CBDC on/off changes both instrument availability and transfer speed. The mechanism audit below tests this difference separately under equal transfer conditions.

Because no new liquidity arrives from the central bank, total conversion is limited by the initial reserve. A higher CBDC limit therefore does not always produce more conversion. When interpreting the chart, the behavioural rule and this accounting constraint should be read together.

A 120-step horizon may end the cash channel early: in a separate validation experiment with the same start, when the run was extended to 480 steps, cash outflows also reached the reserve ceiling. Because bank assignment and the retail network are tied to the same index, social spread within banks should be tested separately.

Model assumptions

Households take into account the neighbours' behaviour in the previous step and bank stress. Conversion is limited by bank reserves. Once the limit is reached, cash remains as the alternative. In this version, digital conversion is assumed to be faster than cash service; cash capacity is a separate control.

The interest rate switch only changes the attractiveness of preferences; it does not accrue interest. Privacy and redress options are hypothetical designs.

Credit assets are held fixed. Deposit insurance, central bank liquidity support, asset sales and interbank transfers are not present in this version. Model results should be read together with these assumptions.

Rules or behaviour?

These runs audit mechanisms and code. Of 320 outcomes, 232 finish at zero or the 20% reserve ceiling; these extremes are not presented as a new behavioural finding. Equal outcomes under matched conditions are a code-identity check.

The new mechanism audit matches 40 experimental cells on the same eight initial populations: 320 NetLogo runs. We equalised cash-transfer conditions, separately removed the addition of CBDC appeal to withdrawal propensity, and extended the horizon from 120 to 480 steps.

Mean outflow relative to initial deposits at crisis intensity 0.5 and limit 50
Regime120 steps480 steps
Original slow cash5.58%20.00%
Fast cash without a quota20.00%20.00%
CBDC with equal conditions; appeal decoupled from withdrawals20.00%20.00%

At a high limit, aggregate outflow can be identical while its allocation between cash and CBDC differs. A limit of 10 also changes short-run speed and asset composition. Initial reserves set the ceiling here; a more comprehensive financial-system model may produce different results.

Download the 320-run data · Code, raw outputs and reproduction bundle

The same peer effect, a different service order

In the new research model, we separated bank assignment from the social network and tested cash transaction size and service capacity independently. Five locally locked experiment families completed 158,410 runs; an exploratory extension on service order completed 43,400 runs.

Seeing neighbours’ decisions can make the first bank stress occur at a lower crisis intensity in the model. Its magnitude also depends on the order in which the bank serves conversion requests. Randomising service order reduces the effect in the cash-only scenario; it remains similar in the short-run CBDC comparison below.

Reduction in first-stress threshold: cash only, 0.0298 with default order and 0.0135 with random order; CBDC limit 20, 0.0967 with default order and 0.0931 with random order.
Each comparison uses 100 matched initialisations. Bars show the mean threshold reduction; thin lines show the 95% uncertainty interval for differences across seeds. Crisis intensity κ is a model parameter scanned from 0.30 to 0.60, not a real-world risk percentage.
Effect of social contagion on the first-stress threshold (M2 − M0)
ScenarioDefault orderRandom order
Cash only, 480 ticks−0.0298−0.0135
CBDC limit 20, 120 ticks−0.0967−0.0931

M0 is the benchmark with peer and bank-stress signals disabled; M2 adds only the peer signal. Negative table values mean that first stress occurs at a lower crisis intensity. Random-order results come from the post-lock exploratory EK1 experiment. The two scenarios use different horizons and are not a direct comparison of cash and CBDC effects.

What did we learn?

  • The 20% outflow ceiling is set by initial reserves. This ceiling alone is not a new behavioural finding.
  • Some differences in the homophily experiments came from service order. Network effects and implementation rules need separate tests.
  • Even when two runs reach the same ceiling, the onset of stress and the cash/CBDC mix can differ.

This research model has not been calibrated to Turkish data. Different networks, confirmatory tests of service order and a central-bank support module are next steps. The browser’s educational v0.1 prototype and the downloadable v0.2/v0.2.1 experiment models are separate versions.

v0.2 code, native raw outputs and analysis package (50 MB) · Chart source table · SHA-256

Relation to TCMB research

The TCMB second-phase report describes simulations of potential effects on the financial system. This small model is not the TCMB model or a Turkish risk forecast; it is a preliminary study for examining explicit assumptions. TCMB reports.

Method and replication

At every step, the model checks the conservation of household wealth, central bank monetary liabilities and bank balance sheets. The 150-condition limit × crisis scan was run with 10 different seeds. The code, parameter table and experiment definition are included in the downloadable method file.

Sources

  1. Wilensky, U. (1999). NetLogo. Northwestern University. Official documents.
  2. Grimm et al. (2020). The ODD Protocol for Describing Agent-Based and Other Simulation Models. JASSS 23(2),7. Article.
  3. IMF (2025). Evaluating the Implications of CBDC for Financial Stability. Report.
  4. Barucci, Gurgone, Iori and Azzone. Central Bank Digital Currency, Flight-to-Quality, and Bank-Runs in an Agent-Based Model. 2025 preprint; 2026 working paper. Open text and version record.
  5. TCMB (2025). Digital Turkish Lira Second Phase Progress Report. Turkey guide.