Skip to content

Release: develop -> main#4241

Merged
TaprootFreak merged 1 commit into
mainfrom
develop
Jul 16, 2026
Merged

Release: develop -> main#4241
TaprootFreak merged 1 commit into
mainfrom
develop

Conversation

@github-actions

Copy link
Copy Markdown

Automatic Release PR

This PR was automatically created after changes were pushed to develop.

Commits: 1 new commit(s)

Checklist

  • Review all changes
  • Verify CI passes
  • Approve and merge when ready for production

…over asset openings (#4239)

* fix(accounting): read the FinanceLog { total } balance objects in cutover asset openings

paymentDepositBalance and manualLiqPosition are serialized as { total }
objects but were typed and summed as bare numbers, so every asset carrying
one of them produced a NaN opening and the cutover failed on the Postgres
bigint insert. Type the DTO to the real shape, read .total in
assetOpeningAmount, and fail loud on any non-finite leg amount in
prepareLeg before it reaches the driver.

* refactor(log): type the getAssetLog accumulator against the AssetLog DTO

The untyped {} accumulator is why the writer/DTO shape drift behind the
cutover NaN incident was never compiler-checked. Typing it surfaced a
second stale declaration: the writer's error line is disabled and the
serialized entries carry no error field, so the DTO must not promise one.
@TaprootFreak
TaprootFreak merged commit 6c90c76 into main Jul 16, 2026
11 checks passed
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