Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reintroduce stake adjustment for PAYG reward #431

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from

Conversation

icezohu
Copy link
Contributor

@icezohu icezohu commented Jan 10, 2025

No description provided.

contracts/RewardsPool.sol Outdated Show resolved Hide resolved
@ianhe8x
Copy link
Contributor

ianhe8x commented Jan 15, 2025

Need more tests. And make sure when the remnants add to next rewards pool, it indeed increase the distributed rewards.

}

/// @notice work for _collect()
function _handleUnclaimedReward(uint256 era, bytes32 deploymentId) private {
Copy link
Contributor

Choose a reason for hiding this comment

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

can't see the reason to extract the code into new function. only end up with extra storage reads.

contracts/RewardsPool.sol Outdated Show resolved Hide resolved
contracts/StateChannel.sol Outdated Show resolved Hide resolved
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