[codex] Add ERC20 lock boost provider#822
Draft
skhomuti wants to merge 6 commits into
Draft
Conversation
dgusakov
reviewed
Jun 18, 2026
| } | ||
|
|
||
| /// @inheritdoc IERC20LockBoostProvider | ||
| function setLockBoostSteps(LockBoostStep[] calldata steps) external onlyRole(DEFAULT_ADMIN_ROLE) { |
Contributor
There was a problem hiding this comment.
Should we recalculate boosts after this change?
Contributor
Author
There was a problem hiding this comment.
can be expensive, i'd suggest async refresh here. addressed in the natspec
| /// @inheritdoc IERC20LockVault | ||
| function transferTokens(address receiver, uint256 amount) external { | ||
| _checkRegistry(); | ||
| if (receiver == address(0)) revert ZeroAddress(); |
Contributor
There was a problem hiding this comment.
Check if there are additional limitations on where LDO can be transferred
Contributor
Author
There was a problem hiding this comment.
it'll revert on the ldo side anyway
712c919 to
0407b20
Compare
0407b20 to
a8f0f49
Compare
vgorkavenko
reviewed
Jun 24, 2026
|
|
||
| /// @inheritdoc IWeightBoostProvider | ||
| function getWeightBoostBP(uint256 nodeOperatorId) external view returns (uint256 boostBP) { | ||
| boostBP = _getBoostBP(_storage().locks[nodeOperatorId].amount); |
Contributor
There was a problem hiding this comment.
MAX_BP + amount I guess
f8c45db to
bd8b09d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary