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

Juglipaff / fair-reward-distributor / 28733842250
100%

Build:
DEFAULT BRANCH: main
Ran 05 Jul 2026 07:49AM UTC
Jobs 1
Files 2
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

05 Jul 2026 07:48AM UTC coverage: 100.0%. Remained the same
28733842250

push

github

Juglipaff
fix: preserve per-user stakeAge across re-stake within a window

_updateStake overwrote userInfo.stakeAge instead of accumulating, so a
sequence of stake -> withdraw -> stake within a single inter-distribution
window discarded stake-age from the prior sub-interval. Users repeating
this pattern received only the final window's share on distribute,
breaking the fairness invariant.

Rename _totalStakeAge to _distributionStakeAge to make the pool-level
accumulator's per-distribution reset semantic explicit and to
disambiguate from the per-user field. Add a test exercising the 3x1
proportional-share property across repeated stake/withdraw cycles.
Expand README to explain the prefix-sum mechanics driving O(1) settlement.

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

12 of 12 branches covered (100.0%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 1 file covered. (100.0%)

102 of 102 relevant lines covered (100.0%)

32.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28733842250.1 05 Jul 2026 07:49AM UTC 2
100.0
GitHub Action Run
Source Files on build 28733842250
  • Tree
  • List 2
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28733842250
  • c2cd24c4 on github
  • Prev Build on main (#28706073472)
  • Next Build on main (#28734032219)
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