-
Notifications
You must be signed in to change notification settings - Fork 195
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
Feat/staking vault init #886
Conversation
loga4
commented
Nov 29, 2024
- add a new VAULT_REGISTRY_ROLE role
- move storage to erc7201 format
- add accounting initializer
- refactor StakingVault initialization
Hardhat Unit Tests Coverage Summary
Diff against master
Results for commit: 7166610 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.
Initialization order could be straightened a bit, imho
/// @notice mapping from vault address to its socket | ||
/// @dev if vault is not connected to the hub, its index is zero | ||
mapping(IHubVault => uint256) private vaultIndex; | ||
// keccak256(abi.encode(uint256(keccak256("VaultHub")) - 1)) & ~bytes32(uint256(0xff)) |
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.
do we have some linter/slither to check it?