-
Notifications
You must be signed in to change notification settings - Fork 156
Feat/bold reduce base stake #391
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
Conversation
|
we should link to the C4 report in the code comments IMO |
src/rollup/RollupCore.sol
Outdated
| /** | ||
| * @notice Retrieves all currently registered stakers | ||
| */ | ||
| function getAllStakers() public view returns (address[] memory) { | ||
| return _stakerList; | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need this, RollupAdminLogic can access private _stakerList in RollupCore
for offchain usage we also have getStakerAddress and stakerCount
gzeoneth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved my own comments, @yahgwai please take a look before merging
gzeoneth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add ability to reduce the base stake used in the rollup contract. Additional check to ensure this occurs in the permissionless domain