Need functionality to tell if there are any unclaimed rewards so that it can be determined if an unstake can succeed or whether it's time to claim rewards.
Assumptions:
claiming rewards is all or nothing - everything is claimed, or the claim_rewards transaction fails because required conditions are not met.
rewards cannot be claimed for eras past the configured history limit (StakingRewardsPastErasMax).
Need functionality to tell if there are any unclaimed rewards so that it can be determined if an unstake can succeed or whether it's time to claim rewards.
Assumptions:
claim_rewards
transaction fails because required conditions are not met.Returns:
BoundedVec<UnclaimedRewardInfo<T: Config>, T::StakingRewardsPastErasMax>