Skip to content

feat(rental): implement proportional rental income distribution system#542

Merged
nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
eyooTech:rent
Jun 2, 2026
Merged

feat(rental): implement proportional rental income distribution system#542
nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
eyooTech:rent

Conversation

@eyooTech
Copy link
Copy Markdown
Contributor

@eyooTech eyooTech commented Jun 2, 2026

Implements a rental income distribution system for fractional property owners.

This introduces proportional distribution of rental income based on ownership shares, along with mechanisms for tracking and claiming unclaimed earnings per owner.

Changes
Added distribute_rental_income for admin/owner distribution
Implemented proportional allocation based on share ownership
Added tracking of unclaimed rental income per owner and property
Added claim_rental_income for users to withdraw earnings
Added get_unclaimed_rental_income query function
Added events: RentalIncomeDistributed and RentalIncomeClaimed
Testing
Verified proportional distribution across multiple shareholders
Verified successful claiming of accumulated income
Verified rejection of zero-amount distributions
Impact

Enables automated and transparent rental income distribution for fractional property investments.

closes #506

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 2, 2026

@eyooTech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Copy link
Copy Markdown
Contributor

@nanaf6203-bit nanaf6203-bit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nanaf6203-bit nanaf6203-bit merged commit f8d78ad into MettaChain:main Jun 2, 2026
1 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Implement rental income distribution for fractional property owners

2 participants