Skip to content

Add diaspora remittance inflow#32

Merged
speedcom merged 1 commit intomainfrom
feature/46-diaspora-remittances
Mar 3, 2026
Merged

Add diaspora remittance inflow#32
speedcom merged 1 commit intomainfrom
feature/46-diaspora-remittances

Conversation

@speedcom
Copy link
Contributor

@speedcom speedcom commented Mar 3, 2026

Summary

  • Per-capita diaspora inflow channel calibrated to NBP BoP 2024 (~18 mld PLN/year, ~40 PLN/person/month)
  • ER pass-through (50%), secular trend (2%/year), counter-cyclical sensitivity to excess unemployment
  • Completes secondary income picture: secondaryIncome = euFunds - remittanceOutflow + diasporaInflow
  • SFC Identity 2 (deposits) and Identity 4 (NFA/BoP) updated; no new identity needed

Changes

File Change
SimConfig.scala +5 env vars (REMITTANCE_ENABLED/PER_CAPITA/ER_ELASTICITY/GROWTH_RATE/CYCLICAL_SENS)
OpenEconomy.scala +diasporaInflow parameter; secondaryIncome formula updated
World.scala +diasporaRemittanceInflow field
SfcCheck.scala +diasporaInflow in MonthlyFlows; Identity 2 formula + Identity 4 comment
Simulation.scala Compute inflow; pass to OpenEconomy; single-bank + multi-bank deposits; SFC flows; World
Main.scala nCols 188→190; +2 output columns (DiasporaRemittanceInflow, NetRemittances); CSV header + colNames
DiasporaRemittanceSpec.scala NEW — 20 tests
IntegrationSpec.scala 188→190
IntegrationFullSpec.scala 188→190

Test plan

  • sbt test — 1166 passed, 0 failed
  • REMITTANCE_ENABLED=true OPEN_ECON=true — DiasporaInflow > 0, no SFC FAIL
  • REMITTANCE_ENABLED=true IMMIG_ENABLED=true — NetRemittances = inflow − outflow, no SFC FAIL
  • REMITTANCE_ENABLED=false — DiasporaInflow = 0, NetRemittances = 0
  • BDP=0 smoke test — no SFC FAIL

Per-capita inflow channel (NBP BoP 2024: ~18 bln PLN/year) with ER
pass-through, secular trend, and counter-cyclical sensitivity. Completes
secondary income picture (inflow + outflow). 5 env vars, 2 output
columns (188-189), Identity 2 + 4 updated, 1166 tests (20 new).
@speedcom speedcom changed the title Add diaspora remittance inflow (#46) Add diaspora remittance inflow Mar 3, 2026
@speedcom speedcom merged commit 1ff111e into main Mar 3, 2026
2 checks passed
@speedcom speedcom deleted the feature/46-diaspora-remittances branch March 3, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant