I started this in the past, but decided to close it. Now, we need it again. Continue down the same path of my original PR.

Let's start with something a lot simpler for now: just one rpc endpoint, nominationPools_pending_rewards that returns just the bending rewards. The rest of the data is pretty trivial to read from the chain state.

0

https://github.com/paritytech/substrate/pull/11235

0

In the new code, all you need to do is call into: member.pending_reward

0

@kianenigma I will look into this.

0
© 2022 pullanswer.com - All rights reserved.