Apps: Staking inflation calculated as Infinity crashes staking screen

Created on 22 Mar 2021  路  5Comments  路  Source: polkadot-js/apps

We have a problem at HydraDX with staking screen https://polkadot.js.org/apps/#/staking

I have been able to follow the issue to staking reward being calculated as Infinity and that crashes the assertion on imuln() when calculating adjusted reward.

We are currently in the validator set bootstrapping phase (like Polkadot and Kusama was). We have 3 of our own validators and no era change. Maybe that is the problem? Haven't been able to dig deeper yet.

https://github.com/polkadot-js/apps/blob/ba4d14a836f083d75ee6edda3329060e75e6540d/packages/page-staking/src/useSortedTargets.ts#L171-L176

@app-staking [bug]

All 5 comments

Sounds like the divisor above - e.bondTotal, o well, something similar in the calcInflation. Tricky to know off-hand where.

You killed it 馃憤馃徎 Thank you for being so quick.

I guess we can close now.

Phew. Sorry about that, was hoping the fixes would solve it.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

Was this page helpful?
0 / 5 - 0 ratings