Skip to content

Comments

Feature/governance and team features#39

Merged
JerryIdoko merged 2 commits intoGrant-Stream:mainfrom
Xhristin3:feature/governance-and-team-features
Feb 22, 2026
Merged

Feature/governance and team features#39
JerryIdoko merged 2 commits intoGrant-Stream:mainfrom
Xhristin3:feature/governance-and-team-features

Conversation

@Xhristin3
Copy link
Contributor

closes #27
closes #28
closes #29

@JerryIdoko JerryIdoko merged commit 59311ba into Grant-Stream:main Feb 22, 2026
1 check failed
- Clean up all .o, .d, .rlib, .dylib files
- This will significantly reduce repository size
- .gitignore files will prevent future heavy pushes
Task 1: DAO Governance for Milestone Approvals
- Add propose_milestone_approval() function for admins to initiate voting
- Add vote_milestone() function restricted to council members
- Automatic token transfer when voting threshold is reached
- Track votes with voting deadlines and prevent double voting

Task 2: Cliff Period for Grant Streams
- Add cliff_end timestamp to Grant struct
- Update withdraw() to return 0 if current_time < cliff_end
- Include cliff time in accrued calculations once passed

Task 3: Team-Based Grant Distribution
- Replace single grantee with grantees: Map<Address, u32> (basis points)
- Update withdraw() to accept caller address and calculate specific shares
- Assert total shares equal 10,000 basis points (100%) during creation
- Track individual withdrawals per team member

Additional Features:
- Enhanced error handling for governance operations
- Support for multi-sig threshold voting (e.g., 3-of-5)
- Per-team member withdrawal tracking
- Comprehensive access control for council members
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants