-
Notifications
You must be signed in to change notification settings - Fork 26
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
Remove onlyOwner
from accept[]
functions
#98
Comments
In the case of the timelock, the fee & the guardian, I think it is not necessary, but it doesn't make that much sense to remove it either Whereas for caps, the owner may change their mind during the timelock period for some market-related reasons and they wouldn't be able to cancel it More generally, the timelock adds a time delay that can make assumptions previously considered true when submitting a change now be false (market volatility for example) |
This is because of the current implementation but that could be updated. We could delete the pending value when submitting the current value for example. I don't have a strong opinion on this feature though |
This is actually what we do: the pending value gets overridden everytime a value is submitted |
What shall we do? |
The owner already submits the pending value, so why restrict the acceptance of the value after the timelock to the owner? Removing the onlyOwner modifier permits automating the acceptance of the values, or using of a multicall to batch acceptances, without more security risks. The consideration of the frontrunning is just after the timelock. The owner has |
This is what changed my mind |
acceptFunction
be onlyOwner
?onlyOwner
from accept[]
functions
Originally posted by @MerlinEgalite in #96 (comment)
The text was updated successfully, but these errors were encountered: