Changed module limit from validators to batches #123
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is a part of the Pectra upgrade (PR#15).
In this PR the limit per module is changed from number of validators to number of batches. This is done because in Pectra, validators can be from 32 ETH to 2048 ETH, so limit by number of validators doesn't make much sense.
Since the struct of the limit (per module) is already storing the current number of validators, a new function has been implemented (setCurrentNumBatches) to modify the value from validators to batches. Unsure if this will be used since initially number of batches and validators is the same