Component: Contracts (Governance) | Effort: 4-5 days | Priority: MEDIUM
Current State
No vote delegation or proxy voting support.
Missing Functions
Delegation functions:
delegate_votes() - Delegate voting power to another address
undelegate_votes() - Remove delegation
get_delegate() - Get who user delegated to
get_voting_power() - Get total voting power (own + delegated)
get_delegators() - Get list of addresses who delegated to user
Why This Matters
- Participation: Users can delegate if they can't vote
- Efficiency: Experts can vote on behalf of others
- Governance: Increases voter participation
- Standard: Most governance systems support delegation
Tasks
Acceptance Criteria
- Users can delegate voting power
- Voting power calculated correctly
- Delegates can vote with delegated power
- Delegation can be revoked
- Tests cover delegation scenarios
- Documentation explains delegation
Component: Contracts (Governance) | Effort: 4-5 days | Priority: MEDIUM
Current State
No vote delegation or proxy voting support.
Missing Functions
Delegation functions:
delegate_votes()- Delegate voting power to another addressundelegate_votes()- Remove delegationget_delegate()- Get who user delegated toget_voting_power()- Get total voting power (own + delegated)get_delegators()- Get list of addresses who delegated to userWhy This Matters
Tasks
delegate_votes()functionundelegate_votes()functionget_voting_power()calculationget_delegate()view functionget_delegators()viewvote()to use voting powerAcceptance Criteria