Skip to content

Release: develop -> main#3490

Merged
TaprootFreak merged 2 commits intomainfrom
develop
Mar 21, 2026
Merged

Release: develop -> main#3490
TaprootFreak merged 2 commits intomainfrom
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

* perf: cache payment deposit balances in finance log job

The saveTradingLog cron job runs every minute but takes ~6 minutes
due to blockchain RPC calls in getPaymentBalances() (10 chains,
24 assets). Cache the result in-memory and only refresh every
60 minutes, since payment deposit balances rarely change.

* fix: preserve cached payment balances on refresh failure

Only update the cache when fresh data is non-empty, so a failed
blockchain RPC refresh does not overwrite valid cached values.

* fix: revert cache guard, empty result on failure is correct behavior
Cache getCustomBalances() blockchain RPC results in-memory with
a 60-minute TTL, same approach as payment deposit balance cache.
Currently queries 3 Alchemy calls per run (1 chain, 3 addresses).
@TaprootFreak TaprootFreak merged commit c8a222a into main Mar 21, 2026
12 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