-
Notifications
You must be signed in to change notification settings - Fork 12
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
audit: Better Storage and Struct Packing Possible #204
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
170947 | ||
149973 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
50750 | ||
50656 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
52301 | ||
52207 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
44298 | ||
44204 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
45889 | ||
45795 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ contract WhitelistVotingStrategy is IVotingStrategy { | |
// The address of the member. | ||
address addr; | ||
// The voting power of the member. | ||
uint256 vp; | ||
uint96 vp; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know this was mentioned in the audit but I don't know how I feel about it. We could imagine some people doing a token + whitelist strategy, and having like 2^100 tokens each. In which case, the whitelist would be too limited... I guess this is an edge case scenario and 99% of the time, uint96 will do the work so it's fine There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, always possible to just write a new strat too if you really need something specific |
||
} | ||
|
||
/// @notice Returns the voting power of an address at a given timestamp. | ||
|
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.
I believe we should keep that in the code as it's a useful comment for the reader imho