pub fn harvest_rewards<T: Config>(pool_id: PoolId, staker: Option<T::AccountId>)
Expand description
Harvest unclaimed pool rewards.
Parameters:
- origin: must be the
staker
if the pool is still active. Otherwise, any account. - pool_id: the pool to harvest from.
- staker: the account for which to harvest rewards. If
None
, the caller is used.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::harvest_rewards
.