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: Space Relies Heavily on Execution Strategy for Correctness #214

Merged
merged 3 commits into from
Jun 20, 2023

Conversation

Orland0x
Copy link
Contributor

closes #171

@codecov
Copy link

codecov bot commented Jun 20, 2023

Codecov Report

Merging #214 (5d70831) into main (39fb3a0) will decrease coverage by 0.52%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #214      +/-   ##
==========================================
- Coverage   81.11%   80.60%   -0.52%     
==========================================
  Files          28       28              
  Lines         466      464       -2     
  Branches      112      110       -2     
==========================================
- Hits          378      374       -4     
- Misses         73       74       +1     
- Partials       15       16       +1     
Impacted Files Coverage Δ
...c/execution-strategies/AvatarExecutionStrategy.sol 61.11% <ø> (-2.05%) ⬇️
...tegies/CompTimelockCompatibleExecutionStrategy.sol 82.35% <ø> (-0.34%) ⬇️
...execution-strategies/TimelockExecutionStrategy.sol 80.00% <ø> (-0.44%) ⬇️
.../execution-strategies/VanillaExecutionStrategy.sol 55.55% <ø> (-4.45%) ⬇️
src/Space.sol 96.26% <100.00%> (+0.05%) ⬆️

... and 1 file with indirect coverage changes

Copy link
Collaborator

@pscott pscott left a comment

Choose a reason for hiding this comment

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

tACK

Comment on lines -279 to -282

// We cache the proposal because we will modify the *real* proposal's finalizationStatus before
// calling the `execute` function. We will use the `cachedProposal` as an argument to the `execute` function.
// This allows us to follow the CEI pattern to avoid reentrancy issues.
Copy link
Collaborator

Choose a reason for hiding this comment

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

me iz sad, you're the one that mentioned adding a comment here lmao

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i just moved it haha and changed context. since we added some more checks it made sense to explain why we update the finalization status instead of why we cache.

@Orland0x Orland0x merged commit 873097a into main Jun 20, 2023
@Orland0x Orland0x deleted the audit_execution_correctness 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: Space Relies Heavily on Execution Strategy for Correctness
2 participants