You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement the dividend distribution system for tokenized assets inside contracts/contrib/.
Location
All work must be inside contracts/contrib/src/dividends.rs.
Acceptance Criteria
distribute_dividends(env, asset_id, total_amount) — callable by asset tokenizer; iterates all holders; adds (holder_balance / total_supply) * total_amount to each holder's unclaimed_dividends in their OwnershipRecord; emits distribution event
Overview
Implement the dividend distribution system for tokenized assets inside
contracts/contrib/.Location
All work must be inside
contracts/contrib/src/dividends.rs.Acceptance Criteria
distribute_dividends(env, asset_id, total_amount)— callable by asset tokenizer; iterates all holders; adds(holder_balance / total_supply) * total_amountto each holder'sunclaimed_dividendsin theirOwnershipRecord; emits distribution eventrevenue_sharing_enabledis falseget_unclaimed_dividends(env, asset_id, holder) -> i128— returns holder's unclaimed amount