-
Notifications
You must be signed in to change notification settings - Fork 375
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
feat: stakeroot cleanup #766
Conversation
added some todo comments |
need help renaming |
uint256 public immutable MIN_PREPAID_PROOFS; | ||
|
||
/// @notice the total number of strategies among all operator sets (with duplicates) | ||
uint256 public totalStrategies; |
Check warning
Code scanning / Slither
State variables that could be declared constant
/// @dev Contains info about cumulative charges. | ||
CumulativeChargeParams public cumulativeChargeParams; | ||
/// @notice deposit balance to be deducted for operatorSets | ||
mapping(address => mapping(uint32 => DepositInfo)) public depositInfos; |
Check failure
Code scanning / Slither
Uninitialized state variables
|
||
return depositInfo.balance > pendingCharge ? depositInfo.balance - pendingCharge : 0; | ||
} | ||
|
||
/// @inheritdoc IStakeRootCompendium | ||
function proofIntervalSeconds() external view returns (uint32) { |
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.
maybe just delete this fn?
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.
add memory returning ones for params?
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.
I left it in so proof submitters can easily query the proof submission rate. I think we will add some events for parameter changes. can leave this in for now?
|
||
function initialize( | ||
address _owner, | ||
address _rootConfirmer, |
Check notice
Code scanning / Slither
Missing zero address validation
missed some stuff
0653a46
to
a017234
Compare
* chore: forge fmt src/contracts * nit: organize imports * fix: bump pragma -> ^0.8.27 * refactor(optimization): significantly reduce sloads/sstores * refactor: custom errors * refactor(optimization): significantly reduce sloads/sstores missed some stuff * refactor: rename compendium -> manager * refactor: more storage optmizations * feat: safe eth transfer helper * refactor: manager -> compendium * refactor: variable renaming * refactor: rename compendium -> manager * feat: add `proofIntervalSeconds` getter * feat: fixed accounting bug and refactoring (#767) * refactor: review reconciliations * refactor: review reconciliations * fix: rename colluding param * fix: types and naming * fix: revert stakeroot calculation changes * fix: revert stakeRoot calc views --------- Co-authored-by: shotaro <10378902+shotaronowhere@users.noreply.github.com>
* chore: forge fmt src/contracts * nit: organize imports * fix: bump pragma -> ^0.8.27 * refactor(optimization): significantly reduce sloads/sstores * refactor: custom errors * refactor(optimization): significantly reduce sloads/sstores missed some stuff * refactor: rename compendium -> manager * refactor: more storage optmizations * feat: safe eth transfer helper * refactor: manager -> compendium * refactor: variable renaming * refactor: rename compendium -> manager * feat: add `proofIntervalSeconds` getter * feat: fixed accounting bug and refactoring (#767) * refactor: review reconciliations * refactor: review reconciliations * fix: rename colluding param * fix: types and naming * fix: revert stakeroot calculation changes * fix: revert stakeRoot calc views --------- Co-authored-by: shotaro <10378902+shotaronowhere@users.noreply.github.com>
* chore: forge fmt src/contracts * nit: organize imports * fix: bump pragma -> ^0.8.27 * refactor(optimization): significantly reduce sloads/sstores * refactor: custom errors * refactor(optimization): significantly reduce sloads/sstores missed some stuff * refactor: rename compendium -> manager * refactor: more storage optmizations * feat: safe eth transfer helper * refactor: manager -> compendium * refactor: variable renaming * refactor: rename compendium -> manager * feat: add `proofIntervalSeconds` getter * feat: fixed accounting bug and refactoring (#767) * refactor: review reconciliations * refactor: review reconciliations * fix: rename colluding param * fix: types and naming * fix: revert stakeroot calculation changes * fix: revert stakeRoot calc views --------- Co-authored-by: shotaro <10378902+shotaronowhere@users.noreply.github.com>
No description provided.