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

audit: use uint256 instead of bool in mappings #208

Merged
merged 9 commits into from
Jun 19, 2023

Conversation

pscott
Copy link
Collaborator

@pscott pscott commented Jun 16, 2023

Closes #182

@pscott pscott requested a review from Orland0x June 16, 2023 10:33
@codecov
Copy link

codecov bot commented Jun 16, 2023

Codecov Report

Merging #208 (038aeda) into main (5c51bbe) will not change coverage.
The diff coverage is 84.61%.

@@           Coverage Diff           @@
##             main     #208   +/-   ##
=======================================
  Coverage   80.82%   80.82%           
=======================================
  Files          28       28           
  Lines         459      459           
  Branches      111      111           
=======================================
  Hits          371      371           
  Misses         73       73           
  Partials       15       15           
Impacted Files Coverage Δ
src/utils/SignatureVerifier.sol 93.33% <75.00%> (ø)
src/utils/SpaceManager.sol 77.77% <80.00%> (ø)
src/Space.sol 96.21% <100.00%> (ø)

@Orland0x
Copy link
Contributor

looks good, theres also the salts mapping in SignatureVerifier

@pscott
Copy link
Collaborator Author

pscott commented Jun 16, 2023

looks good, theres also the salts mapping in SignatureVerifier

Yeah found 1-2 additional occurrences that I fixed. Cheers for reminding me to check the whole codebase :)

src/Space.sol Outdated Show resolved Hide resolved
@pscott pscott requested a review from Orland0x June 19, 2023 09:24
Orlando and others added 5 commits June 19, 2023 15:31
* audit: prevent reentrancy issues in execute function

* comment: add comment for cached proposal

* comment: remove comment for finalization status modification

* chore: CEI explanation

* chore: typo

---------

Co-authored-by: Orlando <[email protected]>
* refactor: timestamps to numbers in space

* refactor: block numbers in proposal status funcs

* refactored: removed timestamp resolver

* refactor: proposal validation to use block nubmers

* refactor: removed snapshot block number

* chore: updated tests

* refactor: make getVotingPower a  view function

* refactor: revert active proposal limiter to timestamps

* refactor: revert timelocks to timestamps

* chore: fixed tests

* Update IVotingStrategy.sol

chore: natspec typo

---------

Co-authored-by: Orlando <[email protected]>
Copy link
Contributor

@Orland0x Orland0x left a comment

Choose a reason for hiding this comment

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

tACK

@Orland0x Orland0x merged commit 4027118 into main Jun 19, 2023
@Orland0x Orland0x deleted the audit_inefficient_boolean_mappings branch October 11, 2023 10:37
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.

audit: Inefficient Boolean Mappings
2 participants