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

Added public functions to check whether shutdown #30

Merged

Conversation

asselstine
Copy link
Contributor

No description provided.

Copy link

linear bot commented Jan 24, 2024

Copy link

LCOV of commit bf1d22a during 100% Test Coverage #162

Summary coverage rate:
  lines......: 100.0% (240 of 240 lines)
  functions..: 100.0% (57 of 57 functions)
  branches...: no data found

Files changed coverage rate:
                                  |Lines       |Functions  |Branches    
  Filename                        |Rate     Num|Rate    Num|Rate     Num
  ======================================================================
  src/TwabController.sol          | 100%    117| 100%    35|    -      0
  src/libraries/TwabLib.sol       | 100%    108| 100%    21|    -      0

Comment on lines +316 to 319
// if the range extends into the shutdown period, return 0
if (isShutdownAt(_endTime, PERIOD_OFFSET)) {
return 0;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(optional) could move this before line 313

@asselstine asselstine merged commit 258ab89 into main Jan 30, 2024
2 checks passed
@asselstine asselstine deleted the gen-1082-add-emergency-shutdown-mode-to-the-prize-pool branch January 30, 2024 22:57
Copy link

LCOV of commit 8f024f3 during 100% Test Coverage #164

Summary coverage rate:
  lines......: 100.0% (240 of 240 lines)
  functions..: 100.0% (57 of 57 functions)
  branches...: no data found

Files changed coverage rate:
                                  |Lines       |Functions  |Branches    
  Filename                        |Rate     Num|Rate    Num|Rate     Num
  ======================================================================
  src/TwabController.sol          | 100%    117| 100%    35|    -      0
  src/libraries/TwabLib.sol       | 100%    108| 100%    21|    -      0

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