Skip to content

feat(monitoring): add Bank Frick to the bank-balance observer#4255

Merged
TaprootFreak merged 1 commit into
developfrom
feat/frick-monitoring
Jul 18, 2026
Merged

feat(monitoring): add Bank Frick to the bank-balance observer#4255
TaprootFreak merged 1 commit into
developfrom
feat/frick-monitoring

Conversation

@TaprootFreak

Copy link
Copy Markdown
Collaborator

What

The bank-balance monitoring observer (bank.observer.ts) aggregated only Olkypay and Yapeal
balances, so Bank Frick balance drift was not monitored.

Changes

  • Add a getFrick() helper mirroring getYapeal(), gated by frickService.isAvailable() in
    fetch(), reusing the existing BankFrickService.getBalances() — the same source the liquidity
    balance adapter already uses.
  • A missing availableBalance fails loud (consistent with the liquidity adapter's Bank Frick case)
    rather than silently substituting the booked balance.
  • Observer spec covering the Frick mapping, the fail-loud cases, and the fetch() aggregation.

The bank-balance monitoring observer aggregated only Olkypay and Yapeal
balances, so Bank Frick balance drift was not monitored. Add a getFrick()
helper mirroring getYapeal(), gated by frickService.isAvailable() in fetch()
and reusing the existing BankFrickService.getBalances() (the same source the
liquidity balance adapter already uses). A missing available balance fails
loud rather than silently substituting the booked balance.
@TaprootFreak

Copy link
Copy Markdown
Collaborator Author

Reviewed in a combined correctness/conformance pass with no findings. getFrick() mirrors the existing Yapeal helper and reuses the same balance source the liquidity adapter already uses; a missing available balance fails loud rather than substituting the booked balance.

@TaprootFreak
TaprootFreak marked this pull request as ready for review July 16, 2026 22:22
@TaprootFreak
TaprootFreak merged commit 7b6ee96 into develop Jul 18, 2026
7 checks passed
@TaprootFreak
TaprootFreak deleted the feat/frick-monitoring branch July 18, 2026 17:06
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