This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
feat: added voting delay, configurable delay, voting, and submission periods, and checkpoints for periods #66
Merged
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
a3d9e07
added set quorum fns
dd0sxx af9c1ef
SetQuorumPct
dd0sxx 2bb3f4e
SetQuorumPct 721
dd0sxx cbce3da
compiles without tests
dd0sxx b48750e
tests work
dd0sxx cccded6
fmt
dd0sxx 8f59376
pushing changes
dd0sxx c16d10e
builds w no tests
dd0sxx 264218e
got rid of hardcoded 1/3 / 2/3 periods
dd0sxx 228f830
added internal fn
dd0sxx 83825c6
init to default value
dd0sxx 66d1bdc
Merge branch 'main' into theo/update-submission-period
dd0sxx 62e48c6
uint48
dd0sxx 8e06643
added view fns
dd0sxx 69117cf
so close
dd0sxx 1550514
5 MOORE
dd0sxx aba8341
CLOSER
dd0sxx d2e978c
YES
dd0sxx 1f2823f
new tests added
dd0sxx abe2676
Merge branch 'main' into theo/update-submission-period
dd0sxx a109d5d
fix
dd0sxx 6dd31ff
comment
dd0sxx f028e5f
Update PeriodPctCheckpoints.sol
dd0sxx 6960a96
Update PeriodPctCheckpoints.sol
dd0sxx 84b362f
Update src/lib/QuorumCheckpoints.sol
0xrajath 448bc49
delayPeriodTimestamp weight
dd0sxx 3a4c010
added weight test
dd0sxx 88946da
tests
dd0sxx a000c44
test
dd0sxx 4eaf6a1
test
dd0sxx 0d50295
comments and insert return fn
dd0sxx 8e546f6
comments
dd0sxx ddd9839
fixed
dd0sxx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
uint48
- Loading branch information
commit 62e48c644a40c368ae071d3552c9e67e90e08b2a
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We can bump this up right to fill the entire word. I know it makes no difference to the actual Pct, but if I remember right it's cheaper to access a full word (i.e 256) vs less than that.
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.
But we can leave it as is if we want to be consistent on using
uint16
for Percentages everywhere.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.
uint16 makes the most sense because the max value is 10000 anyways and uint8 is not enough.
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.
let's let the auditors golf this i don't think we should worry about that in this pr