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: prevent reentrancy issues in execute function #207

Merged
merged 5 commits into from
Jun 19, 2023

Conversation

pscott
Copy link
Collaborator

@pscott pscott commented Jun 16, 2023

Closes #192

@pscott pscott requested a review from Orland0x June 16, 2023 10:10
src/Space.sol Outdated Show resolved Hide resolved
src/Space.sol Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jun 19, 2023

Codecov Report

Merging #207 (0b74c53) into main (b7ff1ef) will decrease coverage by 0.35%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #207      +/-   ##
==========================================
- Coverage   82.05%   81.70%   -0.35%     
==========================================
  Files          29       29              
  Lines         468      470       +2     
  Branches      114      114              
==========================================
  Hits          384      384              
- Misses         70       73       +3     
+ Partials       14       13       -1     
Impacted Files Coverage Δ
src/Space.sol 96.24% <100.00%> (+0.02%) ⬆️

... and 3 files with indirect coverage changes

@pscott pscott requested a review from Orland0x June 19, 2023 09:06
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 e7c71b2 into main Jun 19, 2023
pscott added a commit that referenced this pull request Jun 19, 2023
* 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]>
Orland0x added a commit that referenced this pull request Jun 19, 2023
* audit: use uint256 instead of bool in mappings

* opti: use uint256 instead of bools in other mappings

* chore: define TRUE, FALSE in types

* refactor: use TRUE, FALSE consts from types.sol

* chore: comment explain pupose of boolean aliases

* audit: prevent reentrancy issues in execute function (#207)

* 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: use block numbers to track time (#210)

* 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]>

---------

Co-authored-by: Orlando <[email protected]>
Co-authored-by: Orland0x <[email protected]>
@Orland0x Orland0x deleted the audit_prevent_reetrancy_from_execute 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: Various Reentrancy Possibilities During Proposal Execution
2 participants