-
Notifications
You must be signed in to change notification settings - Fork 80
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
Native staking updates #2023
Native staking updates #2023
Conversation
Fixed spelling of ValidatorAccountant events Implemented depositSSV
Moved MAX_STAKE on ValidatorAccountant to a constant
@@ -85,16 +84,29 @@ abstract contract ValidatorAccountant is ValidatorRegistrator { | |||
|
|||
/// @dev Throws if called by any account other than the Strategist | |||
modifier onlyStrategist() { | |||
require(msg.sender == strategist, "Caller is not the Strategist"); | |||
require( | |||
msg.sender == IVault(VAULT_ADDRESS).strategistAddr(), |
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.
this is better yes thanks!
@@ -157,7 +169,7 @@ abstract contract ValidatorAccountant is ValidatorRegistrator { | |||
IWETH9(WETH_TOKEN_ADDRESS).deposit{ value: wethToVault }(); | |||
IWETH9(WETH_TOKEN_ADDRESS).transfer(VAULT_ADDRESS, wethToVault); | |||
|
|||
emit AccuntingFullyWithdrawnValidator( |
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.
haha that is a bad typo :D
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.
These look great thanks!
strategist
from strategy as its already in the Vault