Description:
RentDistributor::distribute is documented as "triggers yield distribution for a property" but its implementation is:
pub fn distribute(env: Env, prop_id: u64) {
env.events().publish(...);
}
No tokens move, no per-holder accounting is updated. The README describes automated pro-rata streaming, but the function does nothing on-chain. Yield is only realised via pending_yield / claim which require the user to pull it themselves.
Expected behaviour:
Either implement push-distribution across all holders (enumerating them), document clearly that the model is pull-only (and rename/remove distribute), or add a batch-claim helper.
Labels: bug, contracts, rent-distributor
Description:
RentDistributor::distributeis documented as "triggers yield distribution for a property" but its implementation is:No tokens move, no per-holder accounting is updated. The README describes automated pro-rata streaming, but the function does nothing on-chain. Yield is only realised via
pending_yield/claimwhich require the user to pull it themselves.Expected behaviour:
Either implement push-distribution across all holders (enumerating them), document clearly that the model is pull-only (and rename/remove
distribute), or add a batch-claim helper.Labels:
bug,contracts,rent-distributor