-
Notifications
You must be signed in to change notification settings - Fork 194
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
Conversation
…ao into feat/second-opinion-test
test: Second opinion oracle test
# 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
feat: Staking Router 1.5
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
uint256 => uint64 casting occurs in stakingModule.lastDepositAt = uint64(block.timestamp)
function _getStakingModuleSummary(IStakingModule stakingModule) internal view returns (uint256, uint256, uint256) { | ||
return stakingModule.getStakingModuleSummary(); | ||
} |
Check warning
Code scanning / Slither
Unused return Medium
Hardhat Unit Tests Coverage Summary
Diff against master
Results for commit: 39caac3 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
There was a problem hiding this 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:
StakingRouter 1.5 Upgrade, deployed on mainnet