-
Notifications
You must be signed in to change notification settings - Fork 99
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
chore: repo cleanup #139
chore: repo cleanup #139
Conversation
…oordinatorStorage into separate contract
src/RegistryCoordinator.sol
Outdated
* @notice Registers msg.sender as an operator for one or more quorums. If any quorum excees its maximum | ||
* operator capacity after the operator is registered, this method will fail. |
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.
typo: excees
=> exceeds
src/RegistryCoordinator.sol
Outdated
* they are deregistered. | ||
* @notice Updates the StakeRegistry's view of one or more operators' stakes. If any operator | ||
* is found to be below the minimum stake for the quorum, they are deregistered. | ||
* @dev stakes are queryed from the Eigenlayer core DelegationManager contract |
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.
quark-sized nit but I believe it should be queried
instead of queryed
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.
same comment on updateOperatorsForQuorum
😅
* @dev stakes are queryed from the Eigenlayer core DelegationManager contract | ||
* @param operatorsPerQuorum for each quorum in `quorumNumbers`, this has a corresponding list of operators to update. | ||
* @dev Each list of operator addresses MUST be sorted in ascending order | ||
* @dev Each list of operator addresses MUST represent the entire list of registered operators for the corresponding quorum |
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.
might not hurt to acknowledge the potential race condition here? (i.e. if an operator registers/deregisters, it can cause this to revert)
src/RegistryCoordinator.sol
Outdated
* @dev In order to be churned, the existing operator needs to have less stake than | ||
* the total quorum stake by a propertion given by `kickBIPsOfTotalStake` |
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.
typo in propertion
I think this wording may also be a little confusing?
I would say instead:
* @dev In order to be churned out, the existing operator needs to have a proportion of the total
* quorum stake less than `kickBIPsOfTotalStake`
but perhaps that's just my personal preference
src/RegistryCoordinator.sol
Outdated
blsApkRegistry.deregisterOperator(operator, quorumNumbers); | ||
stakeRegistry.deregisterOperator(operatorId, quorumNumbers); | ||
indexRegistry.deregisterOperator(operatorId, quorumNumbers); | ||
} | ||
|
||
/** | ||
* @notice update operator stake for specified quorumsToUpdate, and deregister if necessary | ||
* does nothing if operator is not registered for any quorums. | ||
* @notice Updates the StakeRegistry's view of the operator's stake one or more quorums. |
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 feel like there's a word missing. perhaps "in one or more quorums"?
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! I only have a few really minor, typo-level comments
currentOperatorIndex
when an operator is deregistered, in certain cases #126quorumNumbers
is non-empty #136