This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #515 from keep-network/two-step-gov
Two-step change for governable values Changing/upgrading things in the System contract without warning can lead to unpredictable function call behavior, meaning a user can submit a transaction whose behavior changes compared to when they submitted it, without any warning. This PR makes all upgrades require two steps with a mandatory time window between them. The first step merely broadcasts to users that a particular change is coming, and the second step commits that change after a suitable waiting period. Details: - Governance Time delay 1 hour, set arbitrarily. - Currently, the initial update functions are unlocked. This means that if a change is incoming and is halfway through the waiting period, the initial update function can be called again, the timer resets, an event is fired and the new change is now pending.
- Loading branch information
Showing
2 changed files
with
545 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.