-
Notifications
You must be signed in to change notification settings - Fork 27
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
Rename RootRevoked
to PendingRootRevoked
#83
Rename RootRevoked
to PendingRootRevoked
#83
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.
Having an event just for the root being revoked is counter-productive, because when you are tracking the pending root you prefer having only one event. I think that reusing the same event, but with bytes32(0)
as arguments would be best, as it is done in #80 (more details in this comment)
In any case it must be consistent with MetaMorpho |
Waiting for a consensus |
Again please set the issue that this PR is tackling in the header please (I did it) |
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.
Let's apply @QGarchery suggestion and apply it to MM as well
revokeRoot
=> revokePendingRoot
RevokePendingRoot
event and use SetPendingRoot
instead
Signed-off-by: julien <[email protected]>
Signed-off-by: julien <[email protected]>
Signed-off-by: julien <[email protected]>
RevokePendingRoot
event and use SetPendingRoot
insteadRevokePendingRoot
event and use RootProposed
instead
Signed-off-by: julien <[email protected]>
RevokePendingRoot
event and use RootProposed
insteadRevokePendingRoot
event and use PendingRootSet
instead
After a discussion with @QGarchery & @Rubilmax, we have decided to keep the Moreover, the function So, to recap the final state:
|
RevokePendingRoot
event and use PendingRootSet
insteadRootRevoked
to PendingRootRevoked
@julien-devatom can you update the PR please? |
@@ -96,6 +97,16 @@ contract UniversalRewardsDistributor is IUniversalRewardsDistributorStaticTyping | |||
_setRoot(pendingRoot.root, pendingRoot.ipfsHash); | |||
} | |||
|
|||
/// @notice Revokes the pending root. | |||
/// @dev Can be frontrunned with `acceptRoot` in case the timelock has passed. |
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 think that this natspec comment is not true anymore
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 think it's still valid. One can trigger acceptRoot
as long as block.timestamp >= pendingRoot.validAt
.
Fixes https://github.com/cantinasec/review-morpho-blue-1/issues/80