Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Jst StepResult, FxInterventionResult PLN, BankRates Vector[Rate]#100

Merged
speedcom merged 2 commits intomainfrom
refactor/agents-consistency
Mar 10, 2026
Merged

Jst StepResult, FxInterventionResult PLN, BankRates Vector[Rate]#100
speedcom merged 2 commits intomainfrom
refactor/agents-consistency

Conversation

@speedcom
Copy link
Contributor

Summary

Three consistency fixes across sfc.agents:

Jst.scala:

  • step params DoublePLN (govTaxRevenue, totalWageIncome, gdp, pitRevenue)
  • Removed pitRevenue default — all callers explicit
  • (State, Double) return → StepResult named type
  • @param Scaladoc → inline comments
  • Extracted FallbackPitRate = 0.12 constant

Nbp.scala:

  • FxInterventionResult.eurTraded / .newReserves: DoublePLN

Household.scala:

  • BankRates: Array[Double]Vector[Rate] for both lendingRates and depositRates

12 files, −108/+108 (zero net). Pure refactoring, no behavioral changes.

Test plan

  • sbt test — 1245 tests pass

…ctor[Rate]

Jst.scala:
- step params Double → PLN, remove pitRevenue default
- (State, Double) return → StepResult named type
- @param Scaladoc → inline comments
- Extract FallbackPitRate constant

Nbp.scala:
- FxInterventionResult: eurTraded/newReserves → PLN

Household.scala:
- BankRates: Array[Double] → Vector[Rate]
@speedcom speedcom merged commit 7410940 into main Mar 10, 2026
2 checks passed
@speedcom speedcom deleted the refactor/agents-consistency branch March 10, 2026 19:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant