-
Notifications
You must be signed in to change notification settings - Fork 99
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
Add PCV Deposit to PCV Guardian #355
Conversation
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.
Good addition; some natspec fixes to do and please see my comment about try/catch for the deposit.
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.
Seems good but somewhat confused about the unnecessary require addition.
@@ -49,6 +49,7 @@ contract PCVGuardian is IPCVGuardian, CoreRef { | |||
/// @notice batch version of setSafeAddress | |||
/// @param _safeAddresses the addresses to set as safe, as calldata | |||
function setSafeAddresses(address[] calldata _safeAddresses) external override onlyGovernorOrAdmin { | |||
require(_safeAddresses.length != 0, "empty"); |
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.
Why add this? Seems unnecessary.
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.
good practice to sanity check inputs
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.
Unit tests are failing, please fix before final approval.
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.
ok, just need to fix the unit tests (add a parameter for the new depositAfter
boolean arg, or add a 2nd signature in the contract that uses false
by default)
…ei-protocol-core into feat/add-deposit-guardian
done |
No description provided.