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

SR 1.5 #879

Merged
merged 420 commits into from
Nov 27, 2024
Merged

SR 1.5 #879

merged 420 commits into from
Nov 27, 2024

Conversation

krogla
Copy link
Member

@krogla krogla commented Nov 26, 2024

StakingRouter 1.5 Upgrade, deployed on mainnet

tamtamchik and others added 21 commits October 11, 2024 16:57
# Conflicts:
#	scripts/scratch/steps/0130-grant-roles.ts
#	scripts/scratch/steps/0140-plug-staking-modules.ts
…velop-sync

# Conflicts:
#	deployed-holesky.json
#	deployed-mainnet.json
#	test/0.8.9/oracle/hashConsensus.setQuorum.test.ts
chore: Sync SR1.5 branch with the latest develop
@krogla krogla requested review from a team as code owners November 26, 2024 12:04
Comment on lines +1350 to +1358
function _updateModuleLastDepositState(
StakingModule storage stakingModule,
uint256 stakingModuleId,
uint256 depositsValue
) internal {
stakingModule.lastDepositAt = uint64(block.timestamp);
stakingModule.lastDepositBlock = block.number;
emit StakingRouterETHDeposited(stakingModuleId, depositsValue);
}

Check warning

Code scanning / Slither

Dubious Typecast Medium

Comment on lines +1503 to +1505
function _getStakingModuleSummary(IStakingModule stakingModule) internal view returns (uint256, uint256, uint256) {
return stakingModule.getStakingModuleSummary();
}

Check warning

Code scanning / Slither

Unused return Medium

Copy link

badge

Hardhat Unit Tests Coverage Summary

Filename                                                       Stmts    Miss  Cover    Missing
-----------------------------------------------------------  -------  ------  -------  ---------
contracts/0.4.24/Lido.sol                                        212       0  100.00%
contracts/0.4.24/StETH.sol                                        72       0  100.00%
contracts/0.4.24/StETHPermit.sol                                  15       0  100.00%
contracts/0.4.24/lib/Packed64x4.sol                                5       0  100.00%
contracts/0.4.24/lib/SigningKeys.sol                              36       0  100.00%
contracts/0.4.24/lib/StakeLimitUtils.sol                          37       0  100.00%
contracts/0.4.24/nos/NodeOperatorsRegistry.sol                   512       0  100.00%
contracts/0.4.24/oracle/LegacyOracle.sol                          72       0  100.00%
contracts/0.4.24/utils/Pausable.sol                                9       0  100.00%
contracts/0.4.24/utils/Versioned.sol                               5       0  100.00%
contracts/0.6.12/WstETH.sol                                       17       0  100.00%
contracts/0.8.4/WithdrawalsManagerProxy.sol                       61       0  100.00%
contracts/0.8.9/BeaconChainDepositor.sol                          21       2  90.48%   48, 51
contracts/0.8.9/Burner.sol                                        71       0  100.00%
contracts/0.8.9/DepositSecurityModule.sol                        128       0  100.00%
contracts/0.8.9/EIP712StETH.sol                                   16       0  100.00%
contracts/0.8.9/LidoExecutionLayerRewardsVault.sol                16       0  100.00%
contracts/0.8.9/LidoLocator.sol                                   18       0  100.00%
contracts/0.8.9/OracleDaemonConfig.sol                            28       0  100.00%
contracts/0.8.9/StakingRouter.sol                                316       0  100.00%
contracts/0.8.9/WithdrawalQueue.sol                               88       0  100.00%
contracts/0.8.9/WithdrawalQueueBase.sol                          146       0  100.00%
contracts/0.8.9/WithdrawalQueueERC721.sol                         89       0  100.00%
contracts/0.8.9/WithdrawalVault.sol                               21       0  100.00%
contracts/0.8.9/lib/Math.sol                                       4       0  100.00%
contracts/0.8.9/lib/PositiveTokenRebaseLimiter.sol                22       0  100.00%
contracts/0.8.9/lib/UnstructuredRefStorage.sol                     2       0  100.00%
contracts/0.8.9/oracle/AccountingOracle.sol                      190       2  98.95%   189-190
contracts/0.8.9/oracle/BaseOracle.sol                             89       1  98.88%   397
contracts/0.8.9/oracle/HashConsensus.sol                         263       1  99.62%   1005
contracts/0.8.9/oracle/ValidatorsExitBusOracle.sol                91      91  0.00%    96-461
contracts/0.8.9/proxy/OssifiableProxy.sol                         17       0  100.00%
contracts/0.8.9/sanity_checks/OracleReportSanityChecker.sol      232       0  100.00%
contracts/0.8.9/utils/DummyEmptyContract.sol                       0       0  100.00%
contracts/0.8.9/utils/PausableUntil.sol                           31       0  100.00%
contracts/0.8.9/utils/Versioned.sol                               11       0  100.00%
contracts/0.8.9/utils/access/AccessControl.sol                    23       0  100.00%
contracts/0.8.9/utils/access/AccessControlEnumerable.sol           9       0  100.00%
contracts/testnets/sepolia/SepoliaDepositAdapter.sol              21      21  0.00%    49-100
TOTAL                                                           3016     118  96.09%

Diff against master

Filename                                                       Stmts    Miss  Cover
-----------------------------------------------------------  -------  ------  --------
contracts/0.4.24/nos/NodeOperatorsRegistry.sol                   +27       0  +100.00%
contracts/0.8.9/DepositSecurityModule.sol                        +24       0  +100.00%
contracts/0.8.9/StakingRouter.sol                                +13       0  +100.00%
contracts/0.8.9/oracle/AccountingOracle.sol                      +19      +1  -0.47%
contracts/0.8.9/sanity_checks/OracleReportSanityChecker.sol      +61       0  +100.00%
TOTAL                                                           +144      +1  +0.16%

Results for commit: 39caac3

Minimum allowed coverage is 95%

♻️ This comment has been updated with latest results

Copy link
Member

@tamtamchik tamtamchik left a comment

Choose a reason for hiding this comment

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

🎉

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.

I confirm zero contract changes against the deployed and audited version 🫡

The reference commit hash: 1ffbb7e49e112fcac678f59bf63ba57a7e522874

Audit reports:

@TheDZhon TheDZhon merged commit c19480a into master Nov 27, 2024
10 checks passed
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.

10 participants