Skip to content

fix: keep BondedVotes snapshots checkpointed - #1933

Open
hmzakhalid wants to merge 1 commit into
mainfrom
fix/voting-issue
Open

fix: keep BondedVotes snapshots checkpointed#1933
hmzakhalid wants to merge 1 commit into
mainfrom
fix/voting-issue

Conversation

@hmzakhalid

Copy link
Copy Markdown
Collaborator

Summary

  • Stop BondedVotes.getPastVotes from adding the token-level lock schedule because lockedBalanceAt is present-state, not checkpointed history.
  • Keep token-level lock netting in current getVotes so live reads still account for encumbered FOLD under an escrow votes source.
  • Add regressions for post-snapshot CCA claims, including claims later moved from PENDING into a real policy, and update the voting invariants/flow trace.

Verification

  • pnpm --dir packages/interfold-contracts test test/Registry/BondedVotes.spec.ts
  • pnpm exec prettier --check packages/interfold-contracts/contracts/registry/BondedVotes.sol packages/interfold-contracts/test/Registry/BondedVotes.spec.ts agent/INVARIANTS.md agent/flow-trace/02_TOKENS_AND_ACTIVATION.md
  • pnpm check:docs
  • pnpm --dir packages/interfold-contracts lint
  • pre-push hook via git push -u origin fix/voting-issue after pnpm build:circuits --preset insecure-512 --committee minimum --skip-if-built

@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
crisp Ready Ready Preview Sep 10, 2026 11:14pm UTC
interfold-dashboard Ready Ready Preview Sep 10, 2026 11:14pm UTC
interfold-docs Ready Ready Preview Sep 10, 2026 11:14pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 27 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: ba6a5b07-ef1d-45ed-94ab-3408f2a4b09e

📥 Commits

Reviewing files that changed from the base of the PR and between 03ed94e and a81e795.

📒 Files selected for processing (4)
  • agent/INVARIANTS.md
  • agent/flow-trace/02_TOKENS_AND_ACTIVATION.md
  • packages/interfold-contracts/contracts/registry/BondedVotes.sol
  • packages/interfold-contracts/test/Registry/BondedVotes.spec.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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