Summary
Protocol fees accumulate in the treasury but are never redistributed on-chain. A distribute_protocol_revenue function that splits the treasury balance pro-rata across all stakers weighted by their staked key value would create a meaningful on-chain yield for long-term stakers.
Scope
- Add distribute_protocol_revenue(snapshot_id: u32) callable only by the protocol admin
- Require an existing holder snapshot identified by snapshot_id to determine staker weights
- Compute each staker's share as their staked_quantity * current_price / total_staked_value
- Transfer each staker's share from the treasury to their wallet
- Emit a protocol_revenue_distributed event with total_distributed, staker_count, and snapshot_id
Acceptance Criteria
ETA: 24 hours
Coordinate on Telegram
Summary
Protocol fees accumulate in the treasury but are never redistributed on-chain. A distribute_protocol_revenue function that splits the treasury balance pro-rata across all stakers weighted by their staked key value would create a meaningful on-chain yield for long-term stakers.
Scope
Acceptance Criteria
ETA: 24 hours
Coordinate on Telegram