fix(log): restore unfiltered pending netting#4348
Merged
Merged
Conversation
ℹ️ New TODOs/FIXMEs (1)+ address: yapealEUR.bic.padEnd(11, 'XXX'), |
Collaborator
Author
|
Review record:
No unresolved findings remain. |
TaprootFreak
marked this pull request as ready for review
July 23, 2026 19:28
TaprootFreak
added a commit
that referenced
this pull request
Jul 23, 2026
…4349) The four pending leg fields (fromKraken/toKraken/fromScrypt/toScrypt) dropped negative values from the FinancialDataLog JSON breakdown, because getJsonValue defaults returnNegativeValue to false. Since #4348 lets the unfiltered legs net negative, a negative leg silently disappeared from the breakdown while still subtracting from totalPlusPending, so the visible components no longer summed to the total. Pass returnNegativeValue=true (matching this file's convention for plusBalanceChf/minusBalanceChf/totalBalanceChf/plusBalance/minusBalance/totalPlus/liquidity) so signed legs stay visible and the breakdown reconciles — restoring the diagnostic used to spot equity phantoms.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Root cause
A recent change floored every unfiltered pending leg independently. This erased a negative counterpart before aggregation, allowing an opposing positive Kraken leg to survive as a phantom pending balance.
The filtered path remains unchanged. The unfiltered path now again nets all signed components before the existing
totalPlusPendingguard applies its zero floor.Verification
npm run format:checknpm run lintnpm run type-check