Skip to content

Conversation

@rackstar
Copy link
Contributor

@rackstar rackstar commented Nov 25, 2025

Description

  • add withdrawalShares[nextEpoch] to eligible shares for rewards along with activeStakeShares
  • NOTE: withdrawalShares[currentEpoch] is NOT eligible shares for rewards

Testing

unit tests

Checklist

  • Performed a self-review of my own code
  • Made corresponding changes to the documentation

@rackstar rackstar self-assigned this Nov 25, 2025
@rackstar rackstar force-pushed the docs/symbiotic-integration branch 17 times, most recently from 73edbeb to 2634730 Compare December 2, 2025 12:57
@rackstar rackstar force-pushed the docs/symbiotic-integration branch from 2634730 to db4e995 Compare December 10, 2025 08:36
@rackstar rackstar changed the base branch from release-candidate to feat/symbiotic-vault-rewards-contracts December 10, 2025 08:38
Comment on lines -115 to +119
uint256 rewardsToClaim = Math.min(maxRewards, rewardsByTokenNetwork.length - rewardIndex);
uint256 processed;

for (uint256 i; i < rewardsToClaim; ) {
// loop until we hit maxRewards or run out of reward distributions
while (processed < maxRewards && rewardIndex < rewardsByTokenNetwork.length) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

had drop the Math.min and change to while loop to avoid stack too deep error

@rackstar rackstar changed the title test: symbiotic integration fork tests test: symbiotic DefaultStakerRewards fork Dec 10, 2025
@rackstar rackstar requested a review from shark0der December 10, 2025 08:44
@rackstar rackstar force-pushed the docs/symbiotic-integration branch 2 times, most recently from 3a705d9 to 329c934 Compare December 10, 2025 08:58
@rackstar rackstar force-pushed the docs/symbiotic-integration branch 4 times, most recently from 90d2388 to a9415c2 Compare December 10, 2025 14:55
@rackstar rackstar force-pushed the docs/symbiotic-integration branch from a9415c2 to 0dbae38 Compare December 10, 2025 15:05
@rackstar rackstar marked this pull request as draft December 15, 2025 20:51
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