-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Allow Governor + CompoundTimelock to manage native tokens (eth) in and out of the timelock contract. #2849
Conversation
2ef4b15
to
41ffeb0
Compare
Thanks for helping look into this. I've confirmed that our integration test passes with this change. |
I don't think this change is ideal because it is different from the behavior of GovernorBravo in an important way: ETH sent to the Governor will be locked in it. I think this is a more general problem we should tackle for ERC20 sent to the Governor as well, although that is not a new problem with respect to GovernorBravo. I would not merge this change as is without a way to retrieve those funds. An alternative change is to send |
What about the difference of behavior between our governors depending on the timelock module used? To me they are more problematic. Also, the governor should not have a receive function if there is a timelock module (or if there is one it should revert) |
b7ef479
to
ae3311f
Compare
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.
Looks good to me!
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.
Looks good to me!
(cherry picked from commit 57630d2)
In GovernorBravo (and Alpha), the execute function must send the value attached to the proposal to the timelock
This means two things:
This means that governor + compound timelock cannot be used to manage big funds in Eth.
This PR moves away from compound behavior to enable such usecases.
Note: this issue does NOT affect OZ Governor + TimelockController combo