Repository navigation
test(move): assert staking Σclaims ≤ Σdeposited (reward conservation) - #742
Merged
Merged
Conversation
The staking-pool audit verified via a 20k-trial fuzz that stakers can never collectively claim more than was deposited (accrue floors the per-share delta but banks the full amount into pending, so truncation strands dust — never over-pays), but no committed test asserted Σclaims ≤ Σdeposited directly. Pin it: a 2:1 stake split + an odd dividend (so the per-share division leaves a remainder), both stakers claim, assert the sum ≤ deposited. Closes the last coverage gap the audit campaign flagged (after touch_below #735 and WICK supply #741). Passes; no source change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
maxmoneycash
added a commit
that referenced
this pull request
Jun 22, 2026
…he staking-pool conservation (#745) #742 added claims_never_exceed_deposited_dividends (suite → 695) without syncing docs, so the reality-guard (#738) went RED again (694 vs 695). Sync all docs to 695 (verified actual) — guard green — and map the staking reward-pool conservation property (Σ claims ≤ Σ deposited; the pool can't be drained beyond what was funded, independent of the anti-loop cap) into SAFETY. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
maxmoneycash
added a commit
that referenced
this pull request
Jun 22, 2026
…k) (#746) #744 synced only the README to 695 (staking-conservation test #742), leaving SAFETY.md, deployments/ADDRESSES.md, and the v4.26 runbook at 694. Both count guards went red (check:meta: 695 vs 694; check:doc-counts: same). Synced the three stragglers to 695. (SAFETY line 89 keeps its literal "(#694)" — that is a PR reference, not a count.) Verified: check:doc-counts ✓ "695 = 695 #[test] functions"; check:meta ✓ 695. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This branch was successfully deployed
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.
The staking audit fuzz-verified (20k trials) that stakers can never claim more than deposited (accrue floors per-share, banks full amount → dust stranded, never over-pays), but no committed test asserted it. Pin it (2:1 stakes + odd dividend → remainder; both claim; assert sum ≤ deposited). Closes the last audit-campaign coverage gap (after touch_below #735, WICK supply #741). No source change.
🤖 Generated with Claude Code