feat: SprintFund Core V2 - Security fixes and governance improvements#204
Merged
feat: SprintFund Core V2 - Security fixes and governance improvements#204
Conversation
…nance Add upgraded smart contract addressing multiple security vulnerabilities and governance improvements: Security fixes: - Prevent double voting on proposals (resolves #12) - Deduct quadratic vote cost from stake balance (resolves #13) - Restrict execute-proposal to proposer only (resolves #11) - Add minimum quorum requirement for execution (resolves #15) - Add stake lockup period after voting (resolves #18) Governance improvements: - Add proposal deadline/expiration mechanism (resolves #14) - Add upper bound validation on proposal amount (resolves #16) - Add treasury deposit and balance tracking (resolves #17) - Add event emission for off-chain indexing (resolves #20) - Add admin functions for parameter updates (resolves #21) - Add proposal cancellation by proposer (resolves #25) - Add timelock for high-value proposals (resolves #86) Includes comprehensive test suite with 40 unit tests covering all new functionality and security measures.
Document breaking changes, new features, error codes, and migration steps for users, proposers, and integrators upgrading from V1 to V2.
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.
Summary
Major contract upgrade addressing 12 security vulnerabilities and governance improvements.
Security Fixes
Governance Improvements
Testing
Documentation
Resolves #11, #12, #13, #14, #15, #16, #17, #18, #20, #21, #25, #86