Component: Contracts (Inheritance) | Effort: 4-5 days | Priority: MEDIUM
Current State
All beneficiaries have equal priority. No waterfall or priority-based distribution.
Missing Functions
Priority distribution functions:
set_beneficiary_priority() - Set priority level (1=highest)
get_beneficiary_priority() - Get priority level
enable_waterfall_distribution() - Enable priority-based distribution
calculate_waterfall_amounts() - Calculate amounts based on priority
claim_by_priority() - Claim respecting priority order
Why This Matters
- Flexibility: Some beneficiaries should receive first (e.g., spouse before children)
- Debt coverage: Pay debts before distributing to heirs
- Legal compliance: Some jurisdictions require priority distribution
- Estate planning: Standard practice in complex estates
Tasks
Acceptance Criteria
- Beneficiary priorities can be set
- Waterfall distribution works correctly
- Higher priority beneficiaries claim first
- Insufficient funds handled properly
- Tests cover priority scenarios
- Documentation explains waterfall logic
Component: Contracts (Inheritance) | Effort: 4-5 days | Priority: MEDIUM
Current State
All beneficiaries have equal priority. No waterfall or priority-based distribution.
Missing Functions
Priority distribution functions:
set_beneficiary_priority()- Set priority level (1=highest)get_beneficiary_priority()- Get priority levelenable_waterfall_distribution()- Enable priority-based distributioncalculate_waterfall_amounts()- Calculate amounts based on priorityclaim_by_priority()- Claim respecting priority orderWhy This Matters
Tasks
set_beneficiary_priority()functionenable_waterfall_distribution()functioncalculate_waterfall_amounts()logicclaim_inheritance_plan()to respect priorityget_claimable_by_priority()viewAcceptance Criteria