From 94145078150ceeddc9c8ee9e8ca91cce0326ef76 Mon Sep 17 00:00:00 2001 From: King Date: Thu, 23 Jan 2025 19:37:31 +0100 Subject: [PATCH] fix typo in StakeRegistry.md --- docs/registries/StakeRegistry.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/registries/StakeRegistry.md b/docs/registries/StakeRegistry.md index 13a19334..60df3111 100644 --- a/docs/registries/StakeRegistry.md +++ b/docs/registries/StakeRegistry.md @@ -144,7 +144,7 @@ AVSs will require up-to-date views on an Operator's stake. When an Operator's sh Rather than *pushing* updates, `RegistryCoordinator.updateOperators` and `updateOperatorsForQuorum` can be called by anyone to *pull* updates from the core contracts. Those `RegistryCoordinator` methods act as entry points for this method, which performs the same stake weight calculation as `registerOperator`, updating the Operator's `operatorStakeHistory` and the quorum's `_totalStakeHistory`. -*Note*: there is one major difference between `updateOperatorStake` and `registerOperator` - if an Operator does NOT meet the minimum stake for a quorum, their stake weight is set to 0 and removed from the quorum's total stake weight, mimicing the behavior of `deregisterOperator`. For each quorum where this occurs, that quorum's number is added to a bitmap, `uint192 quorumsToRemove`, which is returned to the `RegistryCoordinator`. The `RegistryCoordinator` uses this returned bitmap to completely deregister Operators, maintaining an invariant that if an Operator's stake weight for a quorum is 0, they are NOT registered for that quorum. +*Note*: there is one major difference between `updateOperatorStake` and `registerOperator` - if an Operator does NOT meet the minimum stake for a quorum, their stake weight is set to 0 and removed from the quorum's total stake weight, mimicking the behavior of `deregisterOperator`. For each quorum where this occurs, that quorum's number is added to a bitmap, `uint192 quorumsToRemove`, which is returned to the `RegistryCoordinator`. The `RegistryCoordinator` uses this returned bitmap to completely deregister Operators, maintaining an invariant that if an Operator's stake weight for a quorum is 0, they are NOT registered for that quorum. This method is ONLY callable by the `RegistryCoordinator`, and is called when an Operator registers for one or more quorums. This method *assumes* that: * `operatorId` belongs to the `operator` @@ -336,4 +336,4 @@ Allows the `RegistryCoordinator` Owner to modify the multipliers specified in a * `strategyIndices` MUST NOT be empty * `strategyIndices` and `newMultipliers` MUST have equal lengths ---- \ No newline at end of file +---