A House Divided A House DividedDocumentation
↵
Changelog
Game Design/Economy & Finance

IMF corporate bailout (admin rescue)

Last updated 2026-10-29
Source files

Summary#

Status: shipped. The corporate IMF rescue is an admin tool that restructures a distressed corporation's bonds into one amortizing IMF facility, dilutes the existing shareholders in favour of the IMF, and restricts the corporation until the facility clears. It is a separate mechanism from the sovereign IMF facility: different debtor (a Corporation document, not a country budget), different trigger (admin action, not a sovereign crisis) and different capture numbers.

Player guide: Corporate IMF Restructuring

Rules#

Constants#

Constant Value Source
IMF_BAILOUT_DEFAULT_INCOME_CAPTURE_FRACTION 0.35 (35% of per-turn income)
IMF_BAILOUT_INCOME_FRACTION_CAP 0.45 (hard ceiling on capture)
IMF_BAILOUT_SHARE_PRICE_MULTIPLIER 0.85 (applied to the final rounded share price)
Default bond retention 0.7 (holders keep 70% of face, 30% haircut)
bondHaircutRetention range 0.01 to 1
targetOwnershipPercent range 1 to 90
annualRatePercent range 0 to 80
amortizationTurns range 24 to 960 integer (preview default 240, preview rate default 6) , .../imf-bailout/route.ts
incomeCapturePercent range 1 to 45, clamped to the 0.45 cap again server-side , .../imf-bailout/route.ts
TURNS_PER_YEAR 48 (annual rate divided by this gives the per-turn rate)
Fallback amortization turns 48 if the stored value is missing
BOND_UNIT_FACE_VALUE 1,000 (retained face is rounded down to whole units)
Sentiment pulse initial impact -0.2, decay rate 0.75, event type imf_bailout

Facility payment formula#

All in anchor currency (₳). Kernel: computeImfFacilityPaymentTurn in , shared with the sovereign facility.

turnIncome is the rescued corporation's snapshot income from the same turn, the figure the corporation turn already computed.

Activation transaction (POST /api/admin/corporations/[id]/imf-bailout)#

  1. Principal is the sum over unmatured bonds of roundFaceToBondUnits(totalIssued * retention). Existing bond rows and their history are deleted, not left as live bonds, so coupons and the facility never double-pay.
  2. Character bondholders receive a system mail from "IMF Restructuring" stating the retained percentage.
  3. New shares go to the IMF corporation. With O the pre-rescue totalShares and p the target fraction, the target IMF share count is floor(p * O / (1 - p)); the shares issued are that minus any shares the IMF already holds. totalShares becomes O + newShares. If totalShares is missing it is treated as 10,000,000.
  4. dividendRate and ceoSalary are set to 0.
  5. State written: imfBailoutActive, imfBailoutImfCorporationId, imfBailoutTargetOwnershipPercent, imfBailoutStartedAt, imfFacilityPrincipalOutstanding, imfFacilityAnnualRate, imfFacilityAmortizationTurnsRemaining, imfFacilityIncomeCaptureFraction (fields on Corporation, ).
  6. A sentiment pulse fires (fireImfBailoutPulse, ).

Restrictions while active#

Data#

Collection Fields Read or written Shown to players
corporations (rescued corp) imfBailoutActive, imfBailoutImfCorporationId, imfBailoutTargetOwnershipPercent, imfBailoutStartedAt, imfFacilityPrincipalOutstanding, imfFacilityAnnualRate, imfFacilityAmortizationTurnsRemaining, imfFacilityIncomeCaptureFraction; also totalShares, shareholders, dividendRate, ceoSalary, lastDividendChange, liquidCapital Written on activation and each turn The corporation page shows the rescue state; GET /api/corporations/[id]/bonds returns a facility summary (principal, rate, turns remaining, capture percent)
corporations (IMF institution, imfInstitution: true) liquidCapital (credited in its own currency); its own shareholders and totalShares are untouched Written each payment Receivable and net worth on the IMF portfolio
bonds, bondHistory Rows for the corporation deleted on activation Deleted Bond holders see the position vanish and receive a mail
characters Read to address the bondholder mail Read Mail only
Mail (system mail) One per bondholder character, sender "IMF Restructuring" Written Yes
Sentiment pulses One imf_bailout pulse per activation Written Indirectly, through the share price
corporationHistory Last income read for the admin preview Read No
FX rates (via loadFxRatesByCurrency) Currency conversion of the ₳ payment Read No

The IMF stake is shown to admins in ₳ as imfShares * sharePrice and net of attributed par debt, imfShares * sharePrice - imfShares / totalShares * totalParDebt. Display only, not market enterprise value.

Configuration#

Setting Default Where set
Bond retention 0.7 Request body bondHaircutRetention, default in the admin route
Target IMF ownership none, required (1 to 90) Request body targetOwnershipPercent
Annual rate none, required (0 to 80); preview defaults to 6 Request body annualRatePercent
Amortization turns none, required (24 to 960); preview defaults to 240 Request body amortizationTurns
Income capture 35%, hard cap 45% , request body incomeCapturePercent, later PATCH
Share price multiplier 0.85

There is no gameConfig flag, era preset or country override for this system. It exists only on corporations an admin has activated, and it needs a seeded IMF institution corporation (getImfCorporation, lookup by imfInstitution: true; seeded by ).

Timing#

flowchart TD
  A["Admin activates: bonds haircut and removed, mail, shares issued, flags set"] --> B["Corporation turn: sector income (dividends, CEO pay forced to 0)"]
  B --> C["Phase 3d: facility payment, rescued corp debited, IMF credited"]
  C --> D["Phase 3e: group loss relief"]
  D --> E["Share price with 0.85 multiplier"]

Worked trace#

A corporation has 1,000,000 face of bonds and 10,000,000 shares. Admin sets retention 0.7, rate 6%, 240 turns, target 40%, default capture 35%.

Activation.

Turn 1, income 8,000.

Alternative turn 1, income 2,000.

Share price. If the formula yields 40.00 before the multiplier, the stored price is round(40.00 * 0.85, 2) = 34.00.

Edge cases and limits#

Invariants#

Invariant Enforced by
Payment never exceeds min(scheduled, income x min(0.45, fraction)) computeImfFacilityPaymentTurn;
Principal rises only by capitalized interest; the clock only stops when interest is short same kernel; imfFacilityMath.test.ts ("computes payment with cap and capitalization")
Dividend and CEO pay are 0 while active sectorCalculations.ts; , , updateCorporationSettings.test.ts
Share price carries the 0.85 multiplier while active sharePriceFormula.ts; both sharePriceFormula.test.ts files
Payment debit and credit are the same ₳ amount converted per currency imfBailoutTurn.ts;
Bond rows are removed so coupons and facility never double-pay route logic;
Activation is atomic across bonds, mail, shares and flags not enforced (see Failure and recovery)

Failure and recovery#

Connections#

Driven by:

Affects:

Tests#

Area Test file
Payment kernel and payoff simulation
Per-turn processor
Admin activate, preview, patch
Share price multiplier ,
Dividend and pay suppression , ,
Bond-default surface
Portfolio valuation of the receivable ,

Gaps: no test for the bonds route 400, the parent-bond-payoff 400, or autoResolveLingeringDefaults skipping rescued corporations, and none for a crash partway through activation.

Known issues and history#

Last checked: 2026-10-29, version 1.18.0

Ask