Skip to content

test: staker multiple pools flow test#78

Merged
noa-starkware merged 2 commits intomainfrom
noa/staking/v3/test/multiple-pools-flow
Nov 27, 2025
Merged

test: staker multiple pools flow test#78
noa-starkware merged 2 commits intomainfrom
noa/staking/v3/test/multiple-pools-flow

Conversation

@noa-starkware
Copy link
Collaborator

@noa-starkware noa-starkware commented Nov 26, 2025

Note

Adds an end-to-end test covering rewards distribution for a staker with STRK and BTC pools and multiple delegators; removes corresponding ideas from flow_ideas.md.

  • Tests:
    • Add staker_multiple_pools_multiple_delegators_flow_test in src/flow_test/test.cairo validating rewards across epochs for a staker with STRK and BTC pools and two delegators per pool, covering stake increases, delegation enters/increases/exit intents, attestations, and final claims (with rounding tolerances).
  • Docs/Ideas:
    • Remove two covered ideas from src/flow_test/flow_ideas.md under k=1 -> k=2 balances.

Written by Cursor Bugbot for commit 01b9979. This will update automatically on new commits. Configure here.


This change is Reviewable

@codecov
Copy link

codecov bot commented Nov 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.69%. Comparing base (7192a42) to head (01b9979).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #78      +/-   ##
==========================================
+ Coverage   95.64%   95.69%   +0.05%     
==========================================
  Files          42       42              
  Lines        9794     9930     +136     
==========================================
+ Hits         9367     9503     +136     
  Misses        427      427              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@NirLevi-starkware NirLevi-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

@NirLevi-starkware reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @noa-starkware)

@noa-starkware noa-starkware force-pushed the noa/staking/v3/test/multiple-pools-flow branch from e40d3b0 to e85847f Compare November 27, 2025 09:44
Copy link
Collaborator

@NirLevi-starkware NirLevi-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

@NirLevi-starkware reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noa-starkware)

@noa-starkware noa-starkware enabled auto-merge (squash) November 27, 2025 09:52
@noa-starkware noa-starkware merged commit ca1738b into main Nov 27, 2025
6 checks passed
@noa-starkware noa-starkware deleted the noa/staking/v3/test/multiple-pools-flow branch November 27, 2025 09:53
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.

2 participants