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

MACI: State variables are incremented within a loop in AccQueue.mergeSubRoots #508

Closed
baumstern opened this issue Aug 25, 2022 · 1 comment

Comments

@baumstern
Copy link
Member

baumstern commented Aug 25, 2022

No description provided.

@baumstern baumstern changed the title MACI: State variables are incremented within a loop in MACI: State variables are incremented within a loop in AccQueue.mergeSubRoots Aug 25, 2022
@baumstern baumstern added the 3 label Aug 25, 2022
ctrlc03 added a commit to ctrlc03/maci that referenced this issue Sep 15, 2022
…ndings on MACI

Implemented fixes for audit findings on MACI, Poll, VkRegistry and AccQueue. 1. Fixed possible
reentrancy attacks. 2. Moved around error messages to reflect the correct error condition.  3.
changed storage variables outside of loops to reduce gas costs. 4. Added SafeERC20 to check a
transfer's return value. 5. Removed redundant boolean checks. 6. Using return value of
`maci.mergeStateAq` to update the `mergedStateRoot` variable.

fix privacy-scaling-explorations#503 fix privacy-scaling-explorations#504 fix privacy-scaling-explorations#505 fix privacy-scaling-explorations#508 fix privacy-scaling-explorations#510
@ctrlc03
Copy link
Collaborator

ctrlc03 commented Nov 17, 2022

Leaving open as this was not fixed due to failing tests. No risks involved, only a gas optimization.

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

No branches or pull requests

2 participants