Skip to content
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

Staking router #463

Merged
merged 38 commits into from
Jan 23, 2023
Merged

Staking router #463

merged 38 commits into from
Jan 23, 2023

Conversation

loga4
Copy link
Contributor

@loga4 loga4 commented Dec 6, 2022

The Lido protocol upgrade introduces the StakingRouter contract, that move towards a modular node operators registry architecture.

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slither found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/interfaces/IStakingModule.sol Outdated Show resolved Hide resolved
contracts/0.4.24/interfaces/INodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/interfaces/INodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.8.9/DepositSecurityModule.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
contracts/0.8.9/DepositSecurityModule.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/interfaces/ILido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
@TheDZhon TheDZhon self-requested a review December 23, 2022 14:03
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
contracts/0.8.9/StakingRouter.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@TheDZhon TheDZhon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tremendous changes 🙏

Leaving the first batch of comments to start with something.

contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/interfaces/ILido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/interfaces/ILido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/interfaces/ILido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/interfaces/ILido.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@TheDZhon TheDZhon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the second batch 🙏

contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.4.24/nos/NodeOperatorsRegistry.sol Outdated Show resolved Hide resolved
contracts/0.8.9/ModuleSolo.sol Outdated Show resolved Hide resolved
contracts/0.8.9/ModuleSolo.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
Psirex and others added 28 commits January 18, 2023 19:45
…b-tests

Staking router/allocation lib tests
…s_registry_tests

NodeOperatorsRegistry full unit tests coverage & fixes
…s_contract_size

Reduce NodeOperatorsRegistry contract size
…posits-tests

test: allocating between modules with different params
… into staking_router_external_params_to_uint256

# Conflicts:
#	contracts/0.8.9/StakingRouter.sol
#	contracts/0.8.9/interfaces/IStakingRouter.sol
#	contracts/0.8.9/test_helpers/StakingRouterMockForDepositSecurityModule.sol
…ms_to_uint256

Staking router external params to uint256
@TheDZhon TheDZhon changed the base branch from develop to feature/shapella-upgrade January 23, 2023 15:16
@arwer13 arwer13 merged commit ad08f38 into feature/shapella-upgrade Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants