• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-client-gateway / 43890744076
92%

Build:
DEFAULT BRANCH: main
Ran 16 Nov 2026 02:56PM UTC
Jobs 4
Files 1134
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Nov 2026 02:54PM UTC coverage: 92.143% (-0.009%) from 92.152%
43890744076

push

github

web-flow
perf(portfolio): skip a cache clear right after another clear (#3764)

* fix(portfolio): limit the portfolio cache clear to Safes and throttle it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(portfolio): keep a portfolio fetched right after a clear for 2 minutes only

A transaction clears the cache before Zerion may have indexed it. With an
hour-long TTL the refetch could cache the old balance for an hour. A fetch
within PORTFOLIO_CACHE_SETTLE_SECONDS (default 120) of the last clear is now
kept only until that window ends, so the next read sees the settled balance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yNBUwcveCbx6xanCevFt2

* fix(portfolio): record the clear time in its own key for the settle window

The Redis invalidation marker lives 60 s and is set once (NX), so a refetch
60-120 s after a clear, or soon after a repeat clear, still got the full TTL.
Each Zerion clear now writes its own cleared-at key for the settle window,
overwritten every time, and the settle-window entry is stored without jitter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yNBUwcveCbx6xanCevFt2

* refactor(portfolio): move the row sums into the portfolio domain

So /v2/safes can value a Safe with the same sums as the summaries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yNBUwcveCbx6xanCevFt2

* feat(safe): read /v2/safes balances from the shared portfolio snapshot

Behind FF_SAFES_PORTFOLIO_SNAPSHOT. When on, /v2/safes values each chain
from the cached Zerion /positions snapshot that /v1/portfolio and
/v2/portfolio/summaries read, instead of its own Zerion /portfolio call.
One Zerion call per Safe serves every screen, and they show the same total.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yNBUwcveCbx6xanC... (continued)

5542 of 6231 branches covered (88.94%)

Branch coverage included in aggregate %.

8 of 8 new or added lines in 3 files covered. (100.0%)

2 existing lines in 2 files now uncovered.

13727 of 14681 relevant lines covered (93.5%)

371.25 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
86.67
-5.0% src/modules/notifications/routes/v1/notifications.controller.ts
1
93.65
-1.59% src/modules/transactions/routes/mappers/common/transaction-data.mapper.ts
Jobs
ID Job ID Ran Files Coverage
1 run-unit-tests - 43890744076.1 16 Nov 2026 02:56PM UTC 1134
69.93
GitHub Action Run
2 run-integration-tests-1 - 43890744076.2 16 Nov 2026 02:56PM UTC 1134
41.73
GitHub Action Run
3 run-integration-tests-3 - 43890744076.3 16 Nov 2026 02:56PM UTC 1134
47.06
GitHub Action Run
4 run-integration-tests-2 - 43890744076.4 16 Nov 2026 02:56PM UTC 1134
44.77
GitHub Action Run
Source Files on build 43890744076
  • Tree
  • List 1134
  • Changed 20
  • Source Changed 8
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43890744076
  • 424e77ff on github
  • Prev Build on main (#43885924444)
  • Next Build on main (#43912443851)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc