Skip to content
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

Bug Fixes #6

Merged
merged 2 commits into from
Feb 27, 2022
Merged

Bug Fixes #6

merged 2 commits into from
Feb 27, 2022

Conversation

heyaibi
Copy link
Contributor

@heyaibi heyaibi commented Feb 17, 2022

  • Replace the magic number 24 hours with a configuration variable called cooldown period
  • Added Resolution Deadline to allow governance admin to perform an Emergency Resolution to defend against consensus attacks or a corrupt governance agent
  • Resolution deadline is reset when a cover is finalized
  • To perform emergency resolution, a governance admin needs to call the function emergencyResolve before the resolution deadline
  • Added functions configureCoolDownPeriod, getCoolDownPeriod, and isResolvedInternal to GovernanceUtilV1 and Resolvable
  • For added clarity, renamed validateUnstakeAfterClaimPeriod to validateUnstakeWithoutClaim
  • Added an event CooldownPeriodConfigured
  • Refactored unit tests
  • Refactored deployment script, composer, and utils
  • Updated ABIs
  • Updated documentation
  • Updated keys

- Replace the magic number `24 hours` with a configuration variable called `cooldown period`
- Added `Resolution Deadline` to allow governance admin to perform an `Emergency Resolution` to defend against consensus attacks or a corrupt governance agent
- Resolution deadline is reset when a cover is finalized
- To perform emergency resolution, a governance admin needs to call the function `emergencyResolve` before the resolution deadline
- Added functions `configureCoolDownPeriod`, `getCoolDownPeriod`, and `isResolvedInternal` to GovernanceUtilV1 and Resolvable
- For added clarity, renamed `validateUnstakeAfterClaimPeriod` to `validateUnstakeWithoutClaim`
- Added an event `CooldownPeriodConfigured`
- Refactored unit tests
- Refactored deployment script, composer, and utils
- Updated ABIs
- Updated documentation
- Updated keys
@heyaibi heyaibi merged commit 6eb4902 into develop Feb 27, 2022
@heyaibi heyaibi deleted the fixes/governance branch February 27, 2022 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants