Description
This is a smart-contract issue for the GrantFox campaign. Two events in revenue_pool include a 4th topic that doesn't exist in EVENT_SCHEMA.md.
Requirements and Context
- Identify the mismatch
- Choose schema vs code as source-of-truth
- Fix the side that's wrong
- Add CI check
- Must be secure, tested, and documented
- Should be efficient and easy to review
Suggested Execution
- Fork the repo and create a branch
git checkout -b bug/revenue-event-shape
- Implement changes
contracts/revenue_pool/src/events.rs
docs/EVENT_SCHEMA.md
scripts/check-event-shape.sh
- Test and commit
- Run the repo's standard test suite and lint
- Cover edge cases; include output in the PR
Example commit message
fix: revenue_pool event shape vs schema
Acceptance Criteria
Guidelines
- Minimum 95% test coverage with
cargo test
require_auth on every state-changing entrypoint
- Overflow-safe math; no
unwrap() in production paths
- Clear NatSpec-style
/// rustdoc
- Timeframe: 96 hours
Description
This is a smart-contract issue for the GrantFox campaign. Two events in revenue_pool include a 4th topic that doesn't exist in EVENT_SCHEMA.md.
Requirements and Context
Suggested Execution
contracts/revenue_pool/src/events.rsdocs/EVENT_SCHEMA.mdscripts/check-event-shape.shExample commit message
Acceptance Criteria
Guidelines
cargo testrequire_authon every state-changing entrypointunwrap()in production paths///rustdoc