Feat/tally audit remediations#678
Merged
Merged
Conversation
updated alpha and may give incorrect result
This reverts commit 3675d8b.
NicoSerranoP
approved these changes
Oct 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR addresses the audit issues raised by Haskcloak for the audit of
Tally.solThe initial audit report is attached as part of this PR, so these changes can be reviewed against it. The issues were:and may give incorrect result
given index
We fixed 1, 4 and 5. After discussing with the auditor, we decided to mark issues 2 and 3 as wont fix as they were not necessary.
Issue 2 was marked as unnecessary as the function is meant to be a view function so should not modify state. Any calculations can be done off-chain if requiring an updated alpha and it is not updated yet on-chain.
Issue 3 was marked as unnecessary as we already implicitly check tallying is done and results are added when calling these functions
We normally raise PRs with a single commit, but since reviewing each audit issue is simpler with a specific commit, I've opted to add separate commits here. Once approved, we can squash all commits on merge.
Additional Notes
Related issue(s)
Confirmation
Important
We do not accept minor grammatical fixes (e.g., correcting typos, rewording sentences) unless they significantly improve clarity in technical documentation. These contributions, while appreciated, are not a priority for merging. If there is a grammatical error feel free to message the team.